zink: always do full-fb clears in renderpass begin when possible
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 14 Oct 2020 16:37:01 +0000 (12:37 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Feb 2021 01:58:59 +0000 (01:58 +0000)
commit5ac0c2c5c949bd1e30b3da4d530be0e1f6d7968b
tree70c5fb1772d7a09b679ba2dcb519538bc7106c14
parent5fe329e3077c222e316f5ef60d30040f1d87da5e
zink: always do full-fb clears in renderpass begin when possible

previously if any of the pending clears required an explicit clear then
we'd clear them explicitly, but with this patch we're shifting the first
pending clear into the renderpass begin if possible and then applying the
remaining clears on top of that in order to reduce gpu operations

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_clear.h
src/gallium/drivers/zink/zink_context.c