[Mesa-dev] [PATCH 076/133] i965/fs_nir: Properly saturate multiplies
Jason Ekstrand
jason at jlekstrand.net
Mon Dec 15 22:05:26 PST 2014
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 019d649..f4656bc 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -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;
}
--
2.2.0
More information about the mesa-dev
mailing list