search for: setdef

Displaying 10 results from an estimated 10 matches for "setdef".

Did you mean: getdef
2019 Oct 14
1
[PATCH] gm107/ir: fix loading z offset for layered 3d image bindings
...if (loaded[i]) + typedDst[i] = loaded[i]->getDef(0); + } + } else { + for (int i = 0; i < 4; i++) { + typedDst[i] = su->getDef(i); + } } // Set the untyped dsts as the su's destinations - for (int i = 0; i < 4; i++) - su->setDef(i, untypedDst[i]); + if (loaded && loaded[0]) { + for (int i = 0; i < 4; i++) + if (loaded[i]) + loaded[i]->setDef(0, untypedDst[i]); + } else { + for (int i = 0; i < 4; i++) + su->setDef(i, untypedDst[i]); - bld.setPosition(su, true)...
2014 Sep 01
0
[PATCH] nv50/ir: use unordered_set instead of list to keep track of var defs
...n/nv50_ir_lowering_nv50.cpp @@ -211,7 +211,7 @@ NV50LegalizePostRA::visit(Function *fn) if (outWrites) { for (std::list<Instruction *>::iterator it = outWrites->begin(); it != outWrites->end(); ++it) - (*it)->getSrc(1)->defs.front()->getInsn()->setDef(0, (*it)->getSrc(0)); + (*(*it)->getSrc(1)->defs.begin())->getInsn()->setDef(0, (*it)->getSrc(0)); // instructions will be deleted on exit outWrites->clear(); } @@ -343,7 +343,7 @@ NV50LegalizeSSA::propagateWriteToOutput(Instruction *st) return;...
2017 Aug 19
1
[PATCH] nv50/ra: Only increment DefValue counter if we are going to spill
...const std::list<ValuePair>& lst) assert(defi); if (defi->isPseudo()) { d = lval->defs.erase(d); - --d; if (slot->reg.file == FILE_MEMORY_LOCAL) to_del.insert(defi); else defi->setDef(0, slot); } else { spill(defi, slot, dval); + d++; } } -- 2.14.0
2014 Dec 02
0
[PATCH RESEND] nv50/ir: use unordered_set instead of list to keep track of var defs
...n/nv50_ir_lowering_nv50.cpp @@ -211,7 +211,7 @@ NV50LegalizePostRA::visit(Function *fn) if (outWrites) { for (std::list<Instruction *>::iterator it = outWrites->begin(); it != outWrites->end(); ++it) - (*it)->getSrc(1)->defs.front()->getInsn()->setDef(0, (*it)->getSrc(0)); + (*(*it)->getSrc(1)->defs.begin())->getInsn()->setDef(0, (*it)->getSrc(0)); // instructions will be deleted on exit outWrites->clear(); } @@ -343,7 +343,7 @@ NV50LegalizeSSA::propagateWriteToOutput(Instruction *st) return;...
2014 Jul 18
5
[PATCH 0/5] nvc0: fp64 preparation
Most of codegen is already FP64-ready. There are a few edge-cases that I ran into, many of which can apply even to non-fp64-enabled programs (although the double-wide registers are not very common without fp64). I've yet to give this a full piglit run, but wanted to send these out in case someone wanted to comment. They do not depend on the preliminary core fp64 work. Ilia Mirkin (5):
2003 Apr 12
1
GENERIC kern compile error 4.8-STABLE
...ecause /usr partition was filled up. I have installed these packages from ports. db-2.7.7_1 The Berkeley DB package, revision 2 db3-3.3.11,1 The Berkeley DB package, revision 3 db4-4.0.14_1,1 The Berkeley DB package, revision 4 What could be wrong? [FAIL] ===> vesa rm -f setdef0.c setdef1.c setdefs.h setdef0.o setdef1.o vesa.ko vesa.kld vesa.o scvesactl.o @ machine symb.tmp tmp.o opt_vga.h rm -f .depend GPATH GRTAGS GSYMS GTAGS cd /usr/obj/Disk1/usrsrc/sys/CERAKERN; MAKESRCPATH=/Disk1/usrsrc/sys/dev/aic7xxx/aicasm make -DBOOTSTRAPPING -f /Disk1/usrsrc/sys/dev/aic7xxx/aic...
2014 Jan 09
0
Handling UMAD with a negative modifier, or why glsl-fs-atan-3 was failing
...t patch either way. Perhaps someone with a NVC0+ card could check that piglit test and see if my patch breaks things... Thanks, -ilia --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.cpp @@ -70,6 +70,9 @@ insn->setDef(0, dst); insn->setSrc(0, src); + if (op == OP_NEG && ty == TYPE_U32) + insn->dType = TYPE_S32; + insert(insn); return insn; }
2014 Sep 25
0
[PATCH] nv50/ir: avoid deleting pseudo instructions too early
...t std::list<ValuePair>& lst) d = lval->defs.erase(d); --d; if (slot->reg.file == FILE_MEMORY_LOCAL) - delete_Instruction(func->getProgram(), defi); + to_del.insert(defi); else defi->setDef(0, slot); } else { @@ -1587,6 +1593,9 @@ SpillCodeInserter::run(const std::list<ValuePair>& lst) } } + for (std::tr1::unordered_set<Instruction *>::const_iterator it = to_del.begin(); + it != to_del.end(); ++it) + delete_Instructio...
2003 Apr 14
2
4.8-STABLE GENERIC buildkernel fail
...before, now i installed the berkley db4 in /usr. But now it report another error, still at the same file. Please reply if you think you know the reason... I'm still running 4.6-STABLE, and would soon like the new 4.8-STABLE kernel made. Regards, Johan Christiansen _________ ===> vesa rm -f setdef0.c setdef1.c setdefs.h setdef0.o setdef1.o vesa.ko vesa.kld vesa.o scvesactl.o @ machine symb.tmp tmp.o opt_vga.h rm -f .depend GPATH GRTAGS GSYMS GTAGS cd /usr/obj/Disk1/usrsrc/sys/GENERIC; MAKESRCPATH=/Disk1/usrsrc/sys/dev/aic7xxx/aicasm make -DBOOTSTRAPPING -f /Disk1/usrsrc/sys/dev/aic7xxx/aica...
2015 Feb 20
10
[PATCH 01/11] nvc0/ir: add emission of dadd/dmul/dmad opcodes, fix minmax
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- .../drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 66 +++++++++++++++++++++- 1 file changed, 63 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp index dfb093c..e38a3b8 100644 ---