zink: don't add void clears if a full clear already exists
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 2 Sep 2022 14:10:01 +0000 (10:10 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 19 Sep 2022 01:00:43 +0000 (01:00 +0000)
commit11a5297ef52865f5512e98f1e49448a6c88908a5
tree077599552f7948a62b2356df534e1959b37549da
parentf380a2d63e65daaa7b5829525cf389525e2d9cf3
zink: don't add void clears if a full clear already exists

this otherwise may clobber other clears or add unnecessary duplicates

Fixes: 7ea7d0687b8 ("zink: inject a 0,0,0,1 clear for RGBX formats")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18627>
src/gallium/drivers/zink/zink_clear.h
src/gallium/drivers/zink/zink_context.c