zink: add helper for applying/discarding clears based on a rect
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 17 Sep 2020 14:45:20 +0000 (10:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Feb 2021 01:58:59 +0000 (01:58 +0000)
commit031e3e68ee6c4fc4dff541834553db81e468ee6b
tree7c47614652928bd7317ec00476491ffae2f772bb
parenta48bf14b4420a988d0d2a4d81dffdb6ebeec7a19
zink: add helper for applying/discarding clears based on a rect

this lets us test whether we're going to overwrite a scissored clear
region in order to correctly no-op it

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