aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-04-28 17:06:59 +0200
committerChristoph Bumiller <[email protected]>2012-04-29 18:03:11 +0200
commit1f4c154f0253ed8fb448402532cfa670f74e69cd (patch)
tree10c485cfad921e6d962c2146efc468ff0aec63a8 /src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp
parentd6ab3106cf7475cdaddf788a3e650bdd5833f73c (diff)
nv50/ir/opt: try to convert ABS(SUB) to SAD
Diffstat (limited to 'src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp')
-rw-r--r--src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp2
1 files changed, 1 insertions, 1 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 ffa40dd93fc..10c2d09d657 100644
--- a/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp
+++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp
@@ -456,7 +456,7 @@ TargetNVC0::isOpSupported(operation op, DataType ty) const
{
if ((op == OP_MAD || op == OP_FMA) && (ty != TYPE_F32))
return false;
- if (op == OP_SAD && ty != TYPE_S32)
+ if (op == OP_SAD && ty != TYPE_S32 && ty != TYPE_U32)
return false;
if (op == OP_POW || op == OP_SQRT || op == OP_DIV || op == OP_MOD)
return false;