zink: manually re-set framebuffer after msrtss replicate blit
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 27 Mar 2023 19:35:47 +0000 (15:35 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Apr 2023 12:58:12 +0000 (12:58 +0000)
commitec0860b40137779e1cbe92c8ca5b3e5d86105da5
treeb6656974a7b072d0c88d399cb244818eebb203d3
parent72a522fb3692985a4e805b00f6d7e2f5a0386d47
zink: manually re-set framebuffer after msrtss replicate blit

with the new zsbuf elimination handling, the fb state calculated in
u_blitter's fb restore may be incorrect if the zsbuf has indeed been
eliminated, so ensure the right fb is stored to be reapplied so that
misrenders will be avoided

fixes some crashes/misrenders in webgl

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