mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
pan/va: Use the _safe iterator when adding blend shader calls
Otherwise the list 'next' changing will cause the assertion in
list_for_each_entry to be hit.
This was not hit before because list_assert is defined for debug
builds but not debugoptimized.
Fixes: 5067a26f44 ("pan/bi: Use flow control lowering on Valhall")
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17371>
This commit is contained in:
parent
dc37ad2a73
commit
bcd85a74e8
1 changed files with 1 additions and 1 deletions
|
|
@ -881,7 +881,7 @@ va_lower_blend(bi_context *ctx)
|
|||
/* Program counter for *next* instruction */
|
||||
bi_index pc = bi_fau(BIR_FAU_PROGRAM_COUNTER, false);
|
||||
|
||||
bi_foreach_instr_global(ctx, I) {
|
||||
bi_foreach_instr_global_safe(ctx, I) {
|
||||
if (I->op != BI_OPCODE_BLEND)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue