mesa/st: Passthrough scissor when clearing by quad
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 18 Jun 2019 20:37:16 +0000 (13:37 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 3 Jul 2019 21:33:46 +0000 (14:33 -0700)
commit0a88aa3025db0cc5a68222c7939d7da4d218f1be
tree21cce7a0ffe7008e87622b5d9d787aa463925037
parent8845a23698c98c8b377b3a451d13bde4c1bc5a70
mesa/st: Passthrough scissor when clearing by quad

The scissor state -is- setup, but the scissor test is not enabled. This
can prevent certain optimizations from occurring on tilers where
unaffected tiles are thrown out entirely.

v2: Only enable scissor test if the scissor test is actually set by the
app, to avoid regressing quad-based clears used for other reasons (like
a color mask).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_clear.c