anv: Drop 3/4 of PPGTT size restriction for sys heap size calculation
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Dec 2023 15:48:11 +0000 (07:48 -0800)
committerEric Engestrom <eric@engestrom.ch>
Fri, 8 Dec 2023 11:24:46 +0000 (11:24 +0000)
commitdb5d58d009e7dad2ccac1bd049751853669c5266
treeeda411801bced6013b06a7db48c2281197499d2d
parent3913722a7faaed74d579199e4b86d2f14013572f
anv: Drop 3/4 of PPGTT size restriction for sys heap size calculation

This was mainly useful for older Gen7.x GPUs with 32-bit PPGTT, which
are now supported by hasvk rather than anv.  The remaining platforms
which anv supports have 36, 47, or 48-bit PPGTT, which imposes a 3/4
limit of 48GB, 96TB, and 192TB of memory.

The GPUs with 36-bit PPGTT are Elkhart Lake and Jasper Lake, which
appear to be Atom CPUs that have a maximum supported memory
configuration of 32GB or less, so this limit should not matter there.
Nor is a multi-TB limit likely to matter on our other parts.

Drop this check to simplify the heap and memory budget calculations.

Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26553>
(cherry picked from commit 029b1d3f262051c9b0fc3ba6c7faca2affa18ddf)
.pick_status.json
src/intel/vulkan/anv_device.c