mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 09:00:08 +01:00
nv50: make IF condition safe
Don't assume that a SET that writes to IF's argument directly precedes the IF.
This commit is contained in:
parent
99e308a0e0
commit
496c9eaacf
1 changed files with 3 additions and 1 deletions
|
|
@ -2026,7 +2026,9 @@ nv50_program_tx_insn(struct nv50_pc *pc,
|
|||
case TGSI_OPCODE_IF:
|
||||
/* emitting a join_at may not be necessary */
|
||||
assert(pc->if_lvl < MAX_IF_DEPTH);
|
||||
set_pred_wr(pc, 1, 0, pc->if_cond);
|
||||
/* set_pred_wr(pc, 1, 0, pc->if_cond); */
|
||||
emit_cvt(pc, NULL, src[0][0], 0, CVTOP_ABS | CVTOP_RN,
|
||||
CVT_F32_F32);
|
||||
emit_branch(pc, 0, 2, &pc->br_join[pc->if_lvl]);
|
||||
pc->if_insn[pc->if_lvl++] = pc->p->exec_tail;
|
||||
terminate_mbb(pc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue