Skip to content

v3dv: remove box check from texel buffer copy fragment shader

We are already ensuring that we only copy the appropriate pixel rect via the scissor and viewport state, so there is no need to do this check in the shader.

Using a stress test with 100 buffer to image copies of a single layered image with 10 miplevels recorded into a command buffer and measuring the time it gets to execute the command buffer we get these results:

              | Execution Time |
    ----------|----------------|
    master    |     0.142s     |
    ----------|----------------|
    patch     |     0.071s     |

Merge request reports