nir/dead_cf: Add missing load_global_bounded handling

Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: caa0854da8 ("nir: plumb load_global_bounded")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
(cherry picked from commit bb6fc8cc20)

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

View file

@ -4864,7 +4864,7 @@
"description": "nir/dead_cf: Add missing load_global_bounded handling",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "caa0854da87545d9e607b97aee0e9e66cc4b52a0",
"notes": null

View file

@ -217,6 +217,7 @@ node_is_dead(nir_cf_node *node)
case nir_intrinsic_load_deref:
case nir_intrinsic_load_ssbo:
case nir_intrinsic_load_global:
case nir_intrinsic_load_global_bounded:
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