radv: expose 2/3rd of total memory as VRAM and 1/3rd as GTT on APUs
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 23 Mar 2021 14:43:28 +0000 (14:43 +0000)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 5 May 2021 06:44:17 +0000 (08:44 +0200)
commit08d162f0b57b5bb68b5a239ef2b3d3456752e0f2
treea17660114a34d670cc001c0652d122ea7868c267
parent986a3243cf9b97e910ff05a5c119ca919b3bc3e0
radv: expose 2/3rd of total memory as VRAM and 1/3rd as GTT on APUs

A bunch of games complain when the VRAM size is too small. The most
compatible solution seems to return memory heaps like a dGPU.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3423
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9774>
src/amd/vulkan/radv_device.c