From 3a9f036e008c5a905d1340f9247a1d7f50fd23dd Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 28 Apr 2012 14:45:05 +0200 Subject: nvc0/ir/target: integer ADD doesn't support ABS modifier --- src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp index 2aa20053c14..93af23faac0 100644 --- a/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp +++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp @@ -481,6 +481,8 @@ TargetNVC0::isModSupported(const Instruction *insn, int s, Modifier mod) const case OP_XOR: break; case OP_ADD: + if (mod.abs()) + return false; if (insn->src(s ? 0 : 1).mod.neg()) return false; break; -- cgit v1.2.3