zink: rework in-use batch states hash table to be a singly-linked list
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 1 Oct 2021 14:33:56 +0000 (10:33 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 Oct 2021 04:16:38 +0000 (04:16 +0000)
commit6cb2787984bfbae2b47769147ccde0607e260098
treec975c54037ac0367c5970ee8daa8e56038d8aaa0
parent2750853894797fa36bfaeeae60e7e4ff28ddb4f0
zink: rework in-use batch states hash table to be a singly-linked list

it was useful to have this be a hash table back before timeline semaphores when
the batch state needed to be looked up every time to determine resource busy state,
but now in the modern world, this is almost never happening, and storing them like
this is actually worse for performance, so flatten it out into a simpler list

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