mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
i965/nir: Properly set the predicate on the SEL used in min/max
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
80390f91a0
commit
2612e569e0
1 changed files with 2 additions and 0 deletions
|
|
@ -1136,6 +1136,7 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)
|
|||
} else {
|
||||
emit(CMP(reg_null_d, op[0], op[1], BRW_CONDITIONAL_L));
|
||||
inst = emit(SEL(result, op[0], op[1]));
|
||||
inst->predicate = BRW_PREDICATE_NORMAL;
|
||||
}
|
||||
inst->saturate = instr->dest.saturate;
|
||||
break;
|
||||
|
|
@ -1149,6 +1150,7 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)
|
|||
} else {
|
||||
emit(CMP(reg_null_d, op[0], op[1], BRW_CONDITIONAL_GE));
|
||||
inst = emit(SEL(result, op[0], op[1]));
|
||||
inst->predicate = BRW_PREDICATE_NORMAL;
|
||||
}
|
||||
inst->saturate = instr->dest.saturate;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue