mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
aco/insert_fp_mode: remove incorrect assertion
This can happen if a loop has no continues, and the later code should work
fine in this situation.
This fixes war_thunder/0013a69e097b2471 on navi21.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Fixes: 6b9d28ab9b ("aco/insert_fp_mode: insert fp mode in reverse")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39481>
This commit is contained in:
parent
c91ed27582
commit
e59a0df302
1 changed files with 9 additions and 9 deletions
|
|
@ -454,16 +454,16 @@ emit_set_mode_block(fp_mode_ctx* ctx, Block* block)
|
|||
for (uint32_t pred : block->linear_preds)
|
||||
max_pred = MAX2(max_pred, pred);
|
||||
|
||||
assert(max_pred != 0);
|
||||
|
||||
mode_mask to_set = 0;
|
||||
/* Check if the any mode was changed during the loop. */
|
||||
u_foreach_bit (i, fp_state.required) {
|
||||
if (ctx->last_set[i] <= max_pred)
|
||||
to_set |= BITFIELD_BIT(i);
|
||||
if (max_pred >= block->index) {
|
||||
mode_mask to_set = 0;
|
||||
/* Check if the any mode was changed during the loop. */
|
||||
u_foreach_bit (i, fp_state.required) {
|
||||
if (ctx->last_set[i] <= max_pred)
|
||||
to_set |= BITFIELD_BIT(i);
|
||||
}
|
||||
if (to_set)
|
||||
set_mode(ctx, block, fp_state, 0, to_set);
|
||||
}
|
||||
if (to_set)
|
||||
set_mode(ctx, block, fp_state, 0, to_set);
|
||||
}
|
||||
|
||||
ctx->block_states[block->index] = fp_state;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue