zink: always unref old images when adding new binds
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 23 Jan 2023 21:34:31 +0000 (16:34 -0500)
committerEric Engestrom <eric@engestrom.ch>
Wed, 8 Feb 2023 20:34:42 +0000 (20:34 +0000)
commit986cd34917195fcb4e4a65fd2be2bab797e746d7
treeccc5705bb24feb28eb3073d9c942877b92870519
parentadf5b07f02e7910367f8a0b428e349ada4fe6b69
zink: always unref old images when adding new binds

at some point this was correct, but refactoring has since occurred,
and this ends up leaking storage image objects

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20867>
(cherry picked from commit d745e3b0ab4614136f1c8d93feb54b612fd58d3f)
.pick_status.json
src/gallium/drivers/zink/zink_resource.c