From: Mike Blumenkrantz Date: Thu, 10 Aug 2023 21:20:16 +0000 (-0400) Subject: ntt: handle interp intrinsics as derefs X-Git-Tag: upstream/23.3.3~3292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8cb0d8a44afb9c70f38e359ffe0ad57416e66a4;p=platform%2Fupstream%2Fmesa.git ntt: handle interp intrinsics as derefs this fixes usage_mask gathering for fs inputs cc: mesa-stable Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi_info.c b/src/gallium/auxiliary/nir/nir_to_tgsi_info.c index 90b0416..070d0c9 100644 --- a/src/gallium/auxiliary/nir/nir_to_tgsi_info.c +++ b/src/gallium/auxiliary/nir/nir_to_tgsi_info.c @@ -224,6 +224,10 @@ static void scan_instruction(const struct nir_shader *nir, case nir_intrinsic_ssbo_atomic_swap: info->writes_memory = true; break; + case nir_intrinsic_interp_deref_at_centroid: + case nir_intrinsic_interp_deref_at_offset: + case nir_intrinsic_interp_deref_at_sample: + case nir_intrinsic_interp_deref_at_vertex: case nir_intrinsic_load_deref: { const nir_variable *var = nir_intrinsic_get_var(intr, 0); const nir_variable_mode mode = var->data.mode;