anv: Disallow allocating above heap sizes
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 2 Dec 2019 20:37:56 +0000 (14:37 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 5 Dec 2019 16:59:10 +0000 (10:59 -0600)
commita4e3d8f0db965b3ca3e8e939397af4a930b48185
treec3dee049650df6a97c5f300f6540d5033830eb39
parent385d13f26d2b69db9423d806833d9b08f948a54a
anv: Disallow allocating above heap sizes

We're already tracking the amount of memory used in each heap.  This
commit just makes us start rejecting memory allocations if the heap
would grow too large.

Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c