nir/dead_cf: Add missing load_ssbo_ir3 handling

Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: 0092edfec0 ("nir/dead_cf: Do not remove loops with loads that can't be reordered")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
(cherry picked from commit 6013667d61)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40752>
This commit is contained in:
Mary Guillemard 2026-03-20 18:37:57 +01:00 committed by Eric Engestrom
parent d769e67c52
commit 7908d4e89f
2 changed files with 2 additions and 1 deletions

View file

@ -4874,7 +4874,7 @@
"description": "nir/dead_cf: Add missing load_ssbo_ir3 handling",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "0092edfec0895533260a52c84cb4ce098f6b6bea",
"notes": null

View file

@ -218,6 +218,7 @@ node_is_dead(nir_cf_node *node)
case nir_intrinsic_load_ssbo:
case nir_intrinsic_load_global:
case nir_intrinsic_load_ssbo_intel:
case nir_intrinsic_load_ssbo_ir3:
/* If there's a memory barrier after the loop, a load might be
* required to happen before some other instruction after the
* barrier, so it is not valid to eliminate it -- unless we