anv: Use a bitset for tracking residency
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 29 Oct 2019 19:26:15 +0000 (14:26 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 31 Oct 2019 13:46:09 +0000 (13:46 +0000)
commitb3c0b1b21880987d90bd5738736f2bd920f76b18
treeb833736e66b4b3d9612ac98ee3d684fbd8cea80a
parent9ef198c59a0cf003b4545e345d34b93d9e4c538b
anv: Use a bitset for tracking residency

Now that we can conveniently map between GEM handles and struct anv_bo
pointers, we can use a simple bitset for residency tracking instead of
the complex hash set.  This shaves about 3% off of a CPU-limited example
running with the Dawn WebGPU implementation.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_private.h