zink: avoid recursion during msrtss blits from flushing clears
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 28 Mar 2023 13:47:45 +0000 (09:47 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Apr 2023 12:58:12 +0000 (12:58 +0000)
commit82add9f2e992be166c60551cfc5baaea0fd0d3a3
tree2bc5e880f2fb5695b63119b53e0d543625d3c746
parent8ea506e94bf22b757b3123c242430ab2392638c2
zink: avoid recursion during msrtss blits from flushing clears

if an attachment other than the msrtss blit attachment has clears pending,
unbinding the other attachment will trigger a clear flush, which will then
recurse into the msrtss blit that's being triggered

instead, save/restore these clears around the msrtss blit since they
can be executed during the normal renderpass

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22577>
src/gallium/drivers/zink/zink_render_pass.c