nak: Do not allow load_helper_invocation reordering
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

load_helper_invocation can not be reordered past a demote.

Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: 7ece220f96 ("nak/nir: Lower systm values before lowering I/O")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40543>
This commit is contained in:
Mary Guillemard 2026-03-20 17:45:57 +01:00 committed by Marge Bot
parent c6d8f7ce0c
commit cba5841d61

View file

@ -537,7 +537,6 @@ nak_nir_lower_system_value_intrin(nir_builder *b, nir_intrinsic_instr *intrin,
}
case nir_intrinsic_load_subgroup_invocation:
case nir_intrinsic_load_helper_invocation:
case nir_intrinsic_load_invocation_id:
case nir_intrinsic_load_workgroup_id: {
const gl_system_value sysval =
@ -608,8 +607,8 @@ nak_nir_lower_system_value_intrin(nir_builder *b, nir_intrinsic_instr *intrin,
}
break;
case nir_intrinsic_is_helper_invocation: {
/* Unlike load_helper_invocation, this one isn't re-orderable */
case nir_intrinsic_is_helper_invocation:
case nir_intrinsic_load_helper_invocation: {
val = nak_nir_load_sysval(b, NAK_SV_THREAD_KILL, 0);
break;
}