mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 09:50:36 +02:00
nak: Do not allow load_helper_invocation reordering
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:
parent
c6d8f7ce0c
commit
cba5841d61
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue