From ba29c050a3b370ff75d229317a6c2107d736c583 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 28 Feb 2020 18:15:39 +0100 Subject: [PATCH] radv/winsys: fix missing initializations of shader info in the null device To avoid divide by zero when computing shader stats. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Tested-by: Marge Bot Part-of: --- src/amd/vulkan/winsys/null/radv_null_winsys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/winsys/null/radv_null_winsys.c b/src/amd/vulkan/winsys/null/radv_null_winsys.c index 105402144da..7ffd8c44db7 100644 --- a/src/amd/vulkan/winsys/null/radv_null_winsys.c +++ b/src/amd/vulkan/winsys/null/radv_null_winsys.c @@ -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) -- 2.30.2