zink: only save frag const buffers when used by blit
authorSoroushIMG <soroush.kashani@imgtec.com>
Sun, 5 Feb 2023 15:43:45 +0000 (15:43 +0000)
committerMarge Bot <emma+marge@anholt.net>
Mon, 6 Feb 2023 14:47:47 +0000 (14:47 +0000)
commit4c647c9e259a6a0fc1499c377a07bfd0ba902079
treefc785cfe51b2dc1e30f77994585189017a25e577
parentc68f9ed02084bc10a8f5a39e18975450c225a8b0
zink: only save frag const buffers when used by blit

fixes upload manager constant buffer leak.
zink only needs to save the const buffer for stencil fallback blits.

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21134>
src/gallium/drivers/zink/zink_blit.c
src/gallium/drivers/zink/zink_types.h