From: Jason Ekstrand Date: Tue, 17 Mar 2015 20:43:10 +0000 (-0700) Subject: i965/nir: Properly set the predicate on the SEL used in min/max X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2612e569e04e29500f81ed233bd86b45ef583495;p=mesa.git i965/nir: Properly set the predicate on the SEL used in min/max Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index a059dbb6a56..90071f602bb 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -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;