From b5f2c0505fd4f66422e034b041cdf0bc3dc46e99 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Fri, 23 Sep 2011 18:39:48 +0200 Subject: nvc0/ir: fix lowering of DIV F32 --- src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/nvc0/codegen') 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)); -- cgit v1.2.3