From 8d983b34255087e0c913ed04f3792dfbc5476016 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 2 May 2024 13:58:21 -0700 Subject: [PATCH] intel/nir: Set src_type on TCS quads workaround store_output We weren't setting this and now it's validated, causing assert failures. Fixes: 1632948a7640 ("nir: validate src_type of store_output intrinsics, require bit_size >= 16") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11107 Part-of: --- src/intel/compiler/intel_nir_tcs_workarounds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/intel_nir_tcs_workarounds.c b/src/intel/compiler/intel_nir_tcs_workarounds.c index 269259ff312..e2b6f358c88 100644 --- a/src/intel/compiler/intel_nir_tcs_workarounds.c +++ b/src/intel/compiler/intel_nir_tcs_workarounds.c @@ -98,6 +98,7 @@ emit_quads_workaround(nir_builder *b, nir_block *block) nir_imm_float(b, 2.0f), inner); nir_store_output(b, inner, nir_imm_int(b, 0), + .src_type = nir_type_uint32, .component = 2, .write_mask = WRITEMASK_XY);