diff options
author | Eric Anholt <[email protected]> | 2014-12-28 08:14:19 -1000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-12-30 14:33:52 -0800 |
commit | 3ba57bae47666ada1145259755fc326b1b9f9463 (patch) | |
tree | 46f2e5952485f97aa47918d50c5051f028917c7f /src/gallium/drivers/vc4/vc4_draw.c | |
parent | 0404e7fe0ac2a6234a11290b4b1596e8bc127a4b (diff) |
vc4: Only render tiles where the scissor ever intersected them.
This gives a 2.7x improvement in x11perf -rect100, since we only end up
load/storing the x11perf window, not the whole screen.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_draw.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_draw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c index d99faa41c54..0d915040c88 100644 --- a/src/gallium/drivers/vc4/vc4_draw.c +++ b/src/gallium/drivers/vc4/vc4_draw.c @@ -316,6 +316,10 @@ vc4_clear(struct pipe_context *pctx, unsigned buffers, if (buffers & PIPE_CLEAR_STENCIL) vc4->clear_stencil = stencil; + vc4->draw_min_x = 0; + vc4->draw_min_y = 0; + vc4->draw_max_x = vc4->framebuffer.width; + vc4->draw_max_y = vc4->framebuffer.height; vc4->cleared |= buffers; vc4->resolve |= buffers; |