radv/winsys: always allow GTT placements on APUs
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 Apr 2020 18:47:46 +0000 (20:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 11:41:07 +0000 (11:41 +0000)
commit28c227c7ca33669d8857f810c23a21a67d53d571
tree564bac58d7e8756383cea31fc8818d8b02e684db
parentd1bba2eee79beceff785e4e00108ba46dd167ef3
radv/winsys: always allow GTT placements on APUs

When the VRAM size is small and the preferred heap only VRAM,
the kernel tries to always honor the requested heap and it does
a ton of evictions which is a disaster for performance.

On APUs, VRAM and GTT have similar performance, so allow the
kernel to choose the best placement (GTT or VRAM) itself.

This gives a huge performance boost with Doom Eternal on RAVEN.

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/5665>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c