i965/fs_nir: Properly saturate multiplies
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Nov 2014 05:34:41 +0000 (21:34 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:19:01 +0000 (07:19 -0800)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 019d649b46877f36a5f67c2b0b12f4ff109f8f85..f4656bcd1b907949c03a3196ea1191c6ecab1899 100644 (file)
@@ -572,7 +572,7 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)
    case nir_op_fmul: {
       fs_inst *inst = MUL(result, op[0], op[1]);
       inst->saturate = instr->dest.saturate;
-      emit_percomp(MUL(result, op[0], op[1]), instr->dest.write_mask);
+      emit_percomp(inst, instr->dest.write_mask);
       break;
    }