ac/gpu_info: increase gfx1100/gfx1101 physical vgprs
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 26 Sep 2022 18:12:41 +0000 (19:12 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Nov 2022 17:09:32 +0000 (17:09 +0000)
https://reviews.llvm.org/D134522

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18825>

src/amd/common/ac_gpu_info.c

index 00dec3b..2745a2c 100644 (file)
@@ -1306,7 +1306,12 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info)
       info->wave64_vgpr_alloc_granularity = 4;
    }
 
-   info->num_physical_wave64_vgprs_per_simd = info->gfx_level >= GFX10 ? 512 : 256;
+   if (info->family == CHIP_GFX1100 || info->family == CHIP_GFX1101)
+      info->num_physical_wave64_vgprs_per_simd = 768;
+   else if (info->gfx_level >= GFX10)
+      info->num_physical_wave64_vgprs_per_simd = 512;
+   else
+      info->num_physical_wave64_vgprs_per_simd = 256;
    info->num_simd_per_compute_unit = info->gfx_level >= GFX10 ? 2 : 4;
 
    /* BIG_PAGE is supported since gfx10.3 and requires VRAM. VRAM is only guaranteed