diff options
Diffstat (limited to 'src/gallium/drivers')
-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 d851cf3c37c..8767e5efb99 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -965,7 +965,7 @@ ConstantFolding::createMul(DataType ty, Value *def, Value *a, int64_t b, Value * if (b >= 0 && util_is_power_of_two_or_zero64(b)) { int shl = util_logbase2_64(b); - Value *res = c ? bld.getSSA() : def; + Value *res = c ? bld.getSSA(typeSizeof(ty)) : def; bld.mkOp2(OP_SHL, ty, res, a, bld.mkImm(shl)); if (c) bld.mkOp2(OP_ADD, ty, def, res, c); |