Skip to content

Revert "radv: Improve spilling on discrete GPUs."

Yogesh Mohan Marmithu requested to merge yogeshmohan/mesa:s3_fps_drop into main

This reverts commit 862b6a9a.

After s3, there is huge fps drop in games. This is because when memory is allocated using radv_amdgpu_winsys_bo_create() with both AMDGPU_GEM_DOMAIN_VRAM and AMDGPU_GEM_DOMAIN_GTT domains set, the kernel memory management after resume fails to move the data back to VRAM. In kernel memory management, ttm_bo_mem_compat() function returns true and hence data is not moved back to VRAM. Checked with Christian Koenig, it is expected behavior for kernel memory management to decide which domain to keep the data if both AMDGPU_GEM_DOMAIN_VRAM and AMDGPU_GEM_DOMAIN_GTT domains are set.

To fix fps drop after s3, needed to revert the patch "radv: Improve spilling on discrete GPUs."

Merge request reports