From: Christoph Bumiller Date: Sat, 18 Aug 2012 15:30:50 +0000 (+0200) Subject: nv50/ir/emit: don't forget saturation bit on f32 add immediate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3a7be740dd9658097c2518a3bc6ec4ec197ad70;p=mesa.git nv50/ir/emit: don't forget saturation bit on f32 add immediate Solved by Maxim Levitsky on IRC. --- 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;