anv/allocator: Rework state streams again
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Dec 2015 19:40:38 +0000 (11:40 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Dec 2015 19:40:38 +0000 (11:40 -0800)
commite6fc170afb68774549e9889fcbbd94d23ffc46f6
tree54622aef583b256c275f97998e88a12558e5d85f
parent28243b2fbadeb4055e1ef83c14d94d62f01fe413
anv/allocator: Rework state streams again

If we're going to hav valgrind verify state streams then we need to ensure
that once we choose a pointer into a block we always use that pointer until
the block is freed.  I was trying to do this with the "current_map" thing.
However, that breaks down because you have to use the map from the block
pool to get to the stream_block to get at current_map.  Instead, this
commit changes things to track the stream_block by pointer instead of by
offset into the block pool.
src/vulkan/anv_allocator.c
src/vulkan/anv_private.h