From a05e6a3fa28168d58a13cfb07f7a664e84b925ae Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Sat, 14 Apr 2012 21:24:16 +0200 Subject: nv50/ir: Decouple object cloning logic from the sub-object recursion policy. --- src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/nvc0') 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 6eb0bf48928..bd33fbfac5c 100644 --- a/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp @@ -159,7 +159,7 @@ NVC0LegalizePostRA::split64BitOp(Instruction *i) return; i->dType = i->sType = TYPE_U32; - i->bb->insertAfter(i, i->clone(true)); // deep cloning + i->bb->insertAfter(i, cloneForward(func, i)); } } @@ -390,7 +390,7 @@ NVC0LoweringPass::handleManualTXD(TexInstruction *i) for (c = 0; c < dim; ++c) bld.mkQuadop(qOps[l][1], crd[c], l, i->dPdy[c].get(), crd[c]); // texture - bld.insert(tex = i->clone(true)); + bld.insert(tex = cloneForward(func, i)); for (c = 0; c < dim; ++c) tex->setSrc(c, crd[c]); // save results -- cgit v1.2.3