summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/codegen
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-04-28 14:45:05 +0200
committerChristoph Bumiller <[email protected]>2012-04-29 17:54:34 +0200
commit3a9f036e008c5a905d1340f9247a1d7f50fd23dd (patch)
tree01dd718b509c9d7e550e450a4226978f427753e4 /src/gallium/drivers/nvc0/codegen
parent18bcb962bbad451a5e34f0315f03b8fb4533ea73 (diff)
nvc0/ir/target: integer ADD doesn't support ABS modifier
Diffstat (limited to 'src/gallium/drivers/nvc0/codegen')
-rw-r--r--src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp2
1 files changed, 2 insertions, 0 deletions
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;