Module: Mesa Branch: master Commit: 1f4bfb8797d2f851f5e113f85bcbff519977fd99 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f4bfb8797d2f851f5e113f85bcbff519977fd99
Author: Christoph Bumiller <e0425...@student.tuwien.ac.at> Date: Wed Feb 19 04:00:34 2014 +0100 nv50/ir/ra: fix SpillCodeInserter::offsetSlot usage We were turning non-memory spill slots into NULL. Cc: 10.1 <mesa-sta...@lists.freedesktop.org> --- src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp index dd3beb7..1ace9f5 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp @@ -284,7 +284,7 @@ public: bool run(const std::list<ValuePair>&); Symbol *assignSlot(const Interval&, const unsigned int size); - Symbol *offsetSlot(Symbol *, const LValue *); + Value *offsetSlot(Value *, const LValue *); inline int32_t getStackSize() const { return stackSize; } private: @@ -1468,12 +1468,12 @@ SpillCodeInserter::assignSlot(const Interval &livei, const unsigned int size) return slot.sym; } -Symbol * -SpillCodeInserter::offsetSlot(Symbol *base, const LValue *lval) +Value * +SpillCodeInserter::offsetSlot(Value *base, const LValue *lval) { - if (!base || !lval->compound || (lval->compMask & 0x1)) + if (!lval->compound || (lval->compMask & 0x1)) return base; - Symbol *slot = cloneShallow(func, base); + Value *slot = cloneShallow(func, base); slot->reg.data.offset += (ffs(lval->compMask) - 1) * lval->reg.size; slot->reg.size = lval->reg.size; @@ -1486,7 +1486,7 @@ SpillCodeInserter::spill(Instruction *defi, Value *slot, LValue *lval) { const DataType ty = typeOfSize(lval->reg.size); - slot = offsetSlot(slot->asSym(), lval); + slot = offsetSlot(slot, lval); Instruction *st; if (slot->reg.file == FILE_MEMORY_LOCAL) { @@ -1507,7 +1507,7 @@ SpillCodeInserter::unspill(Instruction *usei, LValue *lval, Value *slot) { const DataType ty = typeOfSize(lval->reg.size); - slot = offsetSlot(slot->asSym(), lval); + slot = offsetSlot(slot, lval); lval = cloneShallow(func, lval); Instruction *ld; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit