nvc0/ir: fix lowering of DIV F32
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 23 Sep 2011 16:39:48 +0000 (18:39 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:37 +0000 (23:00 +0200)
src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp

index 7e7ae45cc09015c6f42c07c8b3706d8fd7e3da3b..93d60cf16c05f81e7e63555147c93aac31778140 100644 (file)
@@ -524,6 +524,7 @@ NVC0LoweringPass::handleDIV(Instruction *i)
 {
    if (!isFloatType(i->dType))
       return true;
+   bld.setPosition(i, false);
    Instruction *rcp = bld.mkOp1(OP_RCP, i->dType, bld.getSSA(), i->getSrc(1));
    i->op = OP_MUL;
    i->setSrc(1, rcp->getDef(0));