[Mesa-dev] [PATCH 6/9] i965/nir: Properly set the predicate on the SEL used in min/max
Jason Ekstrand
jason at jlekstrand.net
Tue Mar 17 19:17:20 PDT 2015
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 41f9ae2..91a3f65 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -1132,6 +1132,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;
@@ -1145,6 +1146,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;
--
2.3.2
More information about the mesa-dev
mailing list