zink: unify more resource bind count tracking code
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 1 Feb 2021 18:36:46 +0000 (13:36 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 23:29:19 +0000 (23:29 +0000)
commit31083444032cb94b144206fca6271d21daf9e1db
tree1b3400adb52d8952e2eecf53022ce8ca541e1e1b
parent91d2fc191f624b41b25139ed277553ed0d74db54
zink: unify more resource bind count tracking code

we want to avoid updating these values when possible in order to reduce
overhead, which means that if a descriptor is being replaced, it should
be updated only if the replacement is not the same resource

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11093>
src/gallium/drivers/zink/zink_context.c