vc4: Don't worry about partial Z/S clear if the other is already cleared.
authorEric Anholt <eric@anholt.net>
Thu, 6 Oct 2016 21:50:04 +0000 (14:50 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 7 Oct 2016 01:29:16 +0000 (18:29 -0700)
commit20d91e5ce9b2da46c703b6af16c5e7ac0e13150f
treee92ccb83017e7d88d8765876d5fbfbf5ac17547f
parentcb328123fe2fda48add8a754b84b22e54f9c5912
vc4: Don't worry about partial Z/S clear if the other is already cleared.

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)
src/gallium/drivers/vc4/vc4_draw.c