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 <alyssa@rosenzweig.io>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33492>
This commit is contained in:
Daniel Schürmann
2025-02-11 13:08:55 +01:00
committed by Marge Bot
parent a4cffa91b8
commit dbd41e3ddd

View File

@@ -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) {