From: Francisco Jerez Date: Thu, 17 Nov 2011 17:23:28 +0000 (+0100) Subject: nv50/ir/opt: Update the symbol size when combining loads and stores. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90f0fac65524fbc4e2f2d396d20d9808e4a0a95c;p=mesa.git nv50/ir/opt: Update the symbol size when combining loads and stores. --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index 021ee1f22b7..c2c33e20bf1 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -1275,6 +1275,7 @@ MemoryOpt::combineLd(Record *rec, Instruction *ld) } rec->size = size; + rec->insn->getSrc(0)->reg.size = size; rec->insn->setType(typeOfSize(size)); delete_Instruction(prog, ld); @@ -1333,6 +1334,7 @@ MemoryOpt::combineSt(Record *rec, Instruction *st) delete_Instruction(prog, rec->insn); rec->insn = st; rec->size = size; + rec->insn->getSrc(0)->reg.size = size; rec->insn->setType(typeOfSize(size)); return true; }