diff options
author | Christoph Bumiller <[email protected]> | 2012-08-18 17:30:50 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-08-18 17:38:45 +0200 |
commit | f3a7be740dd9658097c2518a3bc6ec4ec197ad70 (patch) | |
tree | e72cec43069c0b97b1f46b225b67e6ef308494bf /src/gallium/drivers/nv50 | |
parent | d0ace4e949d0e2f11e6f0fb0fd97ccde58457937 (diff) |
nv50/ir/emit: don't forget saturation bit on f32 add immediate
Solved by Maxim Levitsky on IRC.
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r-- | src/gallium/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 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; |