zink: move surface and bufferview caches onto resources
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 31 Aug 2021 13:57:30 +0000 (09:57 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Sep 2021 05:47:47 +0000 (05:47 +0000)
commit01f00eb90d3080dbebec19d224ce89b28e0fe8be
treeb0a01fa83288f89eb588b0e93911cd6ad71be46f
parente28df76c3a254eee5e27b0b51ddff4f79a1f8a5b
zink: move surface and bufferview caches onto resources

this makes the locking smaller in scope and also make the lookups faster
due to having smaller populations in the hash tables

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