ir3: don't predicate vote_all/vote_any

These get lowered to control flow which isn't allowed inside predicated
blocks.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Fixes: 39088571f0 ("ir3: add support for predication")
(cherry picked from commit 5e4a7d01fe)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
Job Noorman 2026-03-11 14:50:55 +01:00 committed by Eric Engestrom
parent d78e309e4d
commit 1f89a0fb96
2 changed files with 3 additions and 1 deletions

View file

@ -144,7 +144,7 @@
"description": "ir3: don't predicate vote_all/vote_any",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "39088571f08ae0b8dee1cf51bf590df5c23962bf",
"notes": null

View file

@ -4511,6 +4511,8 @@ instr_can_be_predicated(nir_instr *instr)
case nir_intrinsic_demote_if:
case nir_intrinsic_terminate:
case nir_intrinsic_terminate_if:
case nir_intrinsic_vote_all:
case nir_intrinsic_vote_any:
return false;
default:
return true;