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)
committerEric Engestrom <eric@engestrom.ch>
Wed, 8 Feb 2023 20:34:45 +0000 (20:34 +0000)
commit21e6f53a689fe78609d643295df7cf2aacd9503e
tree80786b03e46f6f7d1ee3961901697749b57e4811
parent72fbe4451d65bb200a7f2451ff08578d54966bff
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>
(cherry picked from commit 4c647c9e259a6a0fc1499c377a07bfd0ba902079)
.pick_status.json
src/gallium/drivers/zink/zink_blit.c
src/gallium/drivers/zink/zink_types.h