anv/allocator: Move the alignment assert for the pointer free list
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 8 Mar 2016 05:22:46 +0000 (21:22 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 8 Mar 2016 06:23:44 +0000 (22:23 -0800)
commit3d4f2b0927acaac05e87ed07ae492e39b4c82ff7
tree2ee10aee2824443127ba4319fa838772a6f87748
parent8c2b9d152941f49d956bb2775a48158d1d10253b
anv/allocator: Move the alignment assert for the pointer free list

Previously we asserted every time you tried to pack a pointer and a counter
together.  However, this wasn't really correct.  In the case where you try
to grab the last element of the list, the "next elemnet" value you get may
be bogus if someonoe else got there first.  This was leading to assertion
failures even though the allocator would safely fall through to the failure
case below.
src/intel/vulkan/anv_allocator.c