anv: Advertise larger heap sizes
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 17 Mar 2017 23:16:06 +0000 (16:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Apr 2017 01:33:52 +0000 (18:33 -0700)
commit060a6434eca9fb05ca2dfd612f8abd4786ee4549
tree5252b43be7b5baaaf0ac13ecebb83b0400bb5511
parent651ec926fc10258ddc567da44c231d5303b8740f
anv: Advertise larger heap sizes

Instead of just advertising the aperture size, we do something more
intelligent.  On systems with a full 48-bit PPGTT, we can address 100%
of the available system RAM from the GPU.  In order to keep clients from
burning 100% of your available RAM for graphics resources, we have a
nice little heuristic (which has received exactly zero tuning) to keep
things under a reasonable level of control.

Reviewed-by: Kristian H. Kristensen <krh@bitplanet.net>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_gem.c
src/intel/vulkan/anv_private.h