vc4: Don't worry about partial Z/S clear if the other is already cleared

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 6 October 2016 20:29 UTC

We have to be careful to not smash the value they're clearing to, but other than that we're fine. Avoids quad clears in Processing, which likes to do glClear(Z|S); glClear(Z).

Improves performance of Processing's QuadRendering demo at 5000 quads by 5.46507% +/- 1.35576% (n=15 before, 32 after)

20d91e5 vc4: Don't worry about partial Z/S clear if the other is already cleared.
src/gallium/drivers/vc4/vc4_draw.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share