i965/nir: Properly set the predicate on the SEL used in min/max
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 Mar 2015 20:43:10 +0000 (13:43 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Mar 2015 08:01:14 +0000 (01:01 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index a059dbb6a562e984207dced848be66440de6f527..90071f602bbc65368ca34bc115bd2144fd4d0d8f 100644 (file)
@@ -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;