From f3a7be740dd9658097c2518a3bc6ec4ec197ad70 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 18 Aug 2012 17:30:50 +0200 Subject: [PATCH] nv50/ir/emit: don't forget saturation bit on f32 add immediate Solved by Maxim Levitsky on IRC. --- src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 3ea89aefd2a..bc4657c13b6 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; -- 2.30.2