diff options
author | Jason Ekstrand <[email protected]> | 2014-11-13 21:34:41 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:19:01 -0800 |
commit | 04fb073344b03a02d56291dd273bdef96147e857 (patch) | |
tree | 1ff9d3fa164cfd1dccf48314b14c86db5480beb5 /src/mesa | |
parent | 5690c2b54cd40c4444ccd8ece4a4af917f64bc61 (diff) |
i965/fs_nir: Properly saturate multiplies
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 019d649b468..f4656bcd1b9 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; } |