mesa/st: better colormask check for clear fallback
authorRob Clark <robdclark@gmail.com>
Tue, 13 Nov 2018 19:19:38 +0000 (14:19 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 27 Nov 2018 20:44:02 +0000 (15:44 -0500)
commit09300bbe03c05af6c212ae9dff86882e14019007
tree2cc8ddb49a2f8ddfdd8fd775d73d5a95f1c614e9
parent65cee01430d03b140c1a916e9409f045e24d4b8f
mesa/st: better colormask check for clear fallback

For RGB surfaces (for example) we don't really care that the colormask
is 0x7 instead of 0xf.  This should not trigger clear_with_quad()
slowpath.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_clear.c