radv/winsys: fix missing initializations of shader info in the null device
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 28 Feb 2020 17:15:39 +0000 (18:15 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 07:43:31 +0000 (07:43 +0000)
To avoid divide by zero when computing shader stats.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3999>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3999>

src/amd/vulkan/winsys/null/radv_null_winsys.c

index 105402144da79a5dec4524ac36976bd69614bd45..7ffd8c44db75c0950769c056db53d255e974faca 100644 (file)
@@ -121,6 +121,8 @@ static void radv_null_winsys_query_info(struct radeon_winsys *rws,
                info->num_physical_sgprs_per_simd = 512;
 
        info->num_physical_wave64_vgprs_per_simd = info->chip_class >= GFX10 ? 512 : 256;
+       info->num_simd_per_compute_unit = info->chip_class >= GFX10 ? 2 : 4;
+       info->lds_size_per_workgroup = info->chip_class >= GFX10 ? 128 * 1024 : 64 * 1024;
 }
 
 static void radv_null_winsys_destroy(struct radeon_winsys *rws)