Module: Mesa Branch: master Commit: f3a7be740dd9658097c2518a3bc6ec4ec197ad70 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f3a7be740dd9658097c2518a3bc6ec4ec197ad70
Author: Christoph Bumiller <[email protected]> Date: Sat Aug 18 17:30:50 2012 +0200 nv50/ir/emit: don't forget saturation bit on f32 add immediate Solved by Maxim Levitsky on IRC. --- .../drivers/nv50/codegen/nv50_ir_emit_nv50.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp index 3ea89ae..bc4657c 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp @@ -893,6 +893,8 @@ CodeEmitterNV50::emitFADD(const Instruction *i) emitForm_IMM(i); code[0] |= neg0 << 15; code[0] |= neg1 << 22; + if (i->saturate) + code[0] |= 1 << 8; } else if (i->encSize == 8) { code[1] = 0; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
