radeonsi: enable ARB_sparse_buffer
authorMarek Olšák <marek.olsak@amd.com>
Wed, 6 May 2020 19:18:25 +0000 (15:18 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 9 Jun 2020 16:00:38 +0000 (16:00 +0000)
This seems to be working now, but it wasn't working before.
I don't know what fixed this. Tested on Raven and Navi14.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5402>

src/amd/common/ac_gpu_info.c

index c1510c3c4f83acee987ccbacb9bb7c8ba793bcc4..a8a43fdc8ee1493848924a34a85976541739cf3f 100644 (file)
@@ -494,11 +494,8 @@ bool ac_query_gpu_info(int fd, void *dev_p,
        info->has_unaligned_shader_loads = info->chip_class != GFX6;
        /* 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 GFX9 due to hangs.
         */
-       info->has_sparse_vm_mappings =
-               info->chip_class >= GFX7 && info->chip_class <= GFX8 &&
-               info->drm_minor >= 13;
+       info->has_sparse_vm_mappings = info->chip_class >= GFX7 && info->drm_minor >= 13;
        info->has_2d_tiling = true;
        info->has_read_registers_query = true;
        info->has_scheduled_fence_dependency = info->drm_minor >= 28;