diff options
author | Samuel Pitoiset <[email protected]> | 2016-10-07 01:08:54 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2016-10-07 01:13:06 +0200 |
commit | 28ecd3eac24ce41b8a855a50f366f1985d1dc934 (patch) | |
tree | 13fa62a3cbf5129bb9ee3fb85d32f1a979bdaeb9 /src/gallium/drivers/nouveau | |
parent | 0b10152b806d111d0f56aec2e86a6e1deea65f24 (diff) |
nv50/ir: fix wrong check when optimizing MAD to SHLADD
Checking if MAD is supported is definitely wrong, and it's
more likely a typo I introduced few days ago which breaks
NV50 because SHLADD is not supported there.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 1c71155f811..6efb29eb4a9 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -1030,7 +1030,7 @@ ConstantFolding::opnd(Instruction *i, ImmediateValue &imm0, int s) i->op = OP_ADD; } else if (s == 1 && !imm0.isNegative() && imm0.isPow2() && - target->isOpSupported(i->op, i->dType)) { + target->isOpSupported(OP_SHLADD, i->dType)) { i->op = OP_SHLADD; imm0.applyLog2(); i->setSrc(1, new_ImmediateValue(prog, imm0.reg.data.u32)); |