anv/allocator: Don't shrink either end of the block pool
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 21 Apr 2018 04:52:41 +0000 (21:52 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 26 Apr 2018 20:17:14 +0000 (13:17 -0700)
commit3db93f9128e5329f6658c9018cf23eb31807c24c
tree5dd22a812180c9c05255c0cdb1270936c0253159
parent76ee9edcb4f5be8699cfb9a6c4aa231c4e7d4183
anv/allocator: Don't shrink either end of the block pool

Previously, we only tried to ensure that we didn't shrink either end
below what was already handed out.  However, due to the way we handle
relocations with block pools, we can't shrink the back end at all.  It's
probably best to not shrink in either direction.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105374
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106147
Tested-by: Eero Tamminen <eero.t.tamminen@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/vulkan/anv_allocator.c