zink: avoid looping for non-ubo descriptor updates based on set usage
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 13 Oct 2020 17:45:50 +0000 (13:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Mar 2021 01:01:57 +0000 (01:01 +0000)
commitc699cc0f9b184c08dfea23b41414c359b6e911d0
tree2d9ec9a46cb2b82175936c3bf95081114504f546
parent839d609b8c89c5e4c8684779e625ae0a62520cb2
zink: avoid looping for non-ubo descriptor updates based on set usage

if we know that the descriptor set is cached and already in use by a given
batch, then we also know that all the resources in the set are tracked, which
means that we can skip over some looping  during descriptor updates which would
otherwise be used to add tracking for sampler/image views/states

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