radv/winsys: set has_3d_cube_border_color_mipmap for null winsys
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 2 Jan 2023 19:17:16 +0000 (19:17 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 4 Jan 2023 11:46:37 +0000 (11:46 +0000)
Without this, NIR->LLVM will set level_zero to false, crashing compilation
of some GFX11 shaders with LLVM (image_gather4_c_o is not supported, while
image_gather4_c_lz_o is).

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20483>

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

index f67f355..8c3f3b9 100644 (file)
@@ -127,6 +127,8 @@ radv_null_winsys_query_info(struct radeon_winsys *rws, struct radeon_info *info)
    else
       info->num_physical_sgprs_per_simd = 512;
 
+   info->has_3d_cube_border_color_mipmap = true;
+
    if (info->family == CHIP_GFX1100 || info->family == CHIP_GFX1101)
       info->num_physical_wave64_vgprs_per_simd = 768;
    else if (info->gfx_level >= GFX10)