Mesa (master): nvc0/ir/target: integer ADD doesn't support ABS modifier
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Sun Apr 29 16:06:51 UTC 2012
Module: Mesa
Branch: master
Commit: 3a9f036e008c5a905d1340f9247a1d7f50fd23dd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a9f036e008c5a905d1340f9247a1d7f50fd23dd
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Sat Apr 28 14:45:05 2012 +0200
nvc0/ir/target: integer ADD doesn't support ABS modifier
---
.../drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp | 2 ++
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 2aa2005..93af23f 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;
More information about the mesa-commit
mailing list