anv/allocator: Tweak the block pool growing algorithm
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 26 Apr 2017 16:53:45 +0000 (09:53 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 5 May 2017 02:07:54 +0000 (19:07 -0700)
commitbcc5d0defb992232155969314618714c63d6ccad
tree28f9baab9d517703bb1ca507aa5f8fd023be5cea
parentd3ed72e2c2164d0ba5f0d2e6d652d8710030aa2b
anv/allocator: Tweak the block pool growing algorithm

The old algorithm worked fine assuming a constant block size.  We're
about to break that assumption so we need an algorithm that's a bit more
robust against suddenly growing by a huge amount compared to the
currently allocated quantity of memory.

Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/intel/vulkan/anv_allocator.c