zink: only run post-fb-unbind layout stuff if the resource isn't being destroyed
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 20 Mar 2023 20:37:27 +0000 (16:37 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Mar 2023 01:39:39 +0000 (01:39 +0000)
commitc2b3c7b6be0d0c0f842e61447cee80122ce69e25
tree43cf30eeefe66636db0abe6d00c164fa440bc4b1
parentb442ea4700b1aebb8c04b44c4738771d630b7f82
zink: only run post-fb-unbind layout stuff if the resource isn't being destroyed

if refcount==1, the resource won't be used any further, and all the code
in this block is only for resources that will be used as samplers,
so don't run any of it

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