zink: pre-hash sampler views and states
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 7 Oct 2020 18:00:19 +0000 (14:00 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 12 Mar 2021 16:32:53 +0000 (16:32 +0000)
commit8c908ee6a4f10117b7392263e0e4686db6264759
treec729013fa2d85692b24192139e9193cdd4b8d88e
parentfa77cc2fbb8de94147ab058a985ebfa627cedabf
zink: pre-hash sampler views and states

this greatly reduces the amount of on-demand hashing that we have to do,
as now in worst case we'll be hashing 2x uint32_t per sampler descriptor
vs 2x vulkan object pointer (sometimes a uint64_t) and a uint32_t

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9348>
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h