anv/allocator: Use anv_state_table on anv_state_pool_alloc.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 29 Nov 2018 18:49:31 +0000 (10:49 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 17 Jan 2019 23:07:50 +0000 (15:07 -0800)
commitd18267fb48106872dbd08acac33c16dd3dd910c0
tree2d5439abf832c1e8568439d7160593d08160f535
parent6a1dcfe73d070d42f19b1450b883e345c5aa001a
anv/allocator: Use anv_state_table on anv_state_pool_alloc.

Use anv_state_pool_return_blocks() to return blocks to the pool, instead
of manually pushing them.

v3:
 - return blocks from the end of the chunk (Jason).

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_private.h