diff options
author | Christoph Bumiller <[email protected]> | 2012-04-28 17:06:59 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-29 18:03:11 +0200 |
commit | 1f4c154f0253ed8fb448402532cfa670f74e69cd (patch) | |
tree | 10c485cfad921e6d962c2146efc468ff0aec63a8 /src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp | |
parent | d6ab3106cf7475cdaddf788a3e650bdd5833f73c (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.cpp | 2 |
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; |