From: Christoph Bumiller Date: Fri, 23 Sep 2011 16:39:48 +0000 (+0200) Subject: nvc0/ir: fix lowering of DIV F32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5f2c0505fd4f66422e034b041cdf0bc3dc46e99;p=mesa.git nvc0/ir: fix lowering of DIV F32 --- diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp index 7e7ae45cc09..93d60cf16c0 100644 --- a/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp @@ -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));