summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-09-23 18:39:48 +0200
committerChristoph Bumiller <[email protected]>2011-10-21 23:00:37 +0200
commitb5f2c0505fd4f66422e034b041cdf0bc3dc46e99 (patch)
tree9998da5cce93c0a0be2753a050798f3d29a46d54 /src/gallium/drivers/nvc0
parentcb884262931644340507b3abdc12c3842d3e9897 (diff)
nvc0/ir: fix lowering of DIV F32
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r--src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp1
1 files changed, 1 insertions, 0 deletions
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));