ac/gpu_info: Disable sparse VM mappings pre-Polaris, for now

Disable sparse mappings on GFX7-8 due to GPU hangs in the VK CTS,
except Polaris where it happens to work "well enough" to pass
the VK CTS and run some games already.

Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38304>
This commit is contained in:
Timur Kristóf
2025-11-15 14:21:21 +01:00
parent 1c8881fc60
commit 567e1b56ef

View File

@@ -729,8 +729,11 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
info->has_eqaa_surface_allocator = info->gfx_level < GFX11;
/* Disable sparse mappings on GFX6 due to VM faults in CP DMA. Enable them once
* these faults are mitigated in software.
* Disable sparse mappings on GFX7-8 due to GPU hangs in the VK CTS,
* except Polaris where it happens to work "well enough".
* Enable them when these are investigated and fixed in the driver.
*/
info->has_sparse_vm_mappings = info->gfx_level >= GFX7;
info->has_sparse_vm_mappings = info->family >= CHIP_POLARIS10;
info->has_gang_submit = info->drm_minor >= 49;
info->has_gpuvm_fault_query = info->drm_minor >= 55;
info->has_tmz_support = device_info.ids_flags & AMDGPU_IDS_FLAGS_TMZ;