anv: Allocate scratch BOs from the cache
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 28 Oct 2019 21:42:02 +0000 (16:42 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 31 Oct 2019 13:46:09 +0000 (13:46 +0000)
commitd0ec55d5a30ea26066e03bafe43dfac9f6a37a76
treedf7f901f7009571dc672e4611ec3a488622ec200
parentee77938733cd06f5fbc86d42c0b4ad0a64ca2579
anv: Allocate scratch BOs from the cache

While we're here, we get rid of the locking and use a lock-free
algorithm.  The chances of spilling contention are low and this is
actually a bit simpler in some ways.

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