From dbd41e3ddd026c694dadd42fe33d683fb49b76fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 11 Feb 2025 13:08:55 +0100 Subject: [PATCH] nir: set SYSTEM_VALUE_HELPER_INVOCATION read for nir_intrinsic_is_helper_invocation is_helper_invocation is the volatile access of load_helper_invocation. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Mike Blumenkrantz Part-of: --- src/compiler/nir/nir_gather_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 38c31d0660d..25779505c50 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -723,6 +723,10 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader, nir_system_value_from_intrinsic(instr->intrinsic)); break; + case nir_intrinsic_is_helper_invocation: + BITSET_SET(shader->info.system_values_read, SYSTEM_VALUE_HELPER_INVOCATION); + break; + case nir_intrinsic_load_barycentric_pixel: if (nir_intrinsic_interp_mode(instr) == INTERP_MODE_SMOOTH || nir_intrinsic_interp_mode(instr) == INTERP_MODE_NONE) {