diff options
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index 5b0174b16cb..2a7a981ac61 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -630,7 +630,7 @@ ConstantFolding::opnd(Instruction *i, ImmediateValue *src, int s) i->setSrc(1, NULL); } else if (i->dType == TYPE_U32 && imm.isPow2()) { - i->op = OP_SHL; + i->op = OP_SHR; i->setSrc(1, bld.mkImm(util_logbase2(imm.reg.data.u32))); } else if (i->dType == TYPE_U32) { |