From 90f0fac65524fbc4e2f2d396d20d9808e4a0a95c Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 17 Nov 2011 18:23:28 +0100 Subject: [PATCH] nv50/ir/opt: Update the symbol size when combining loads and stores. --- src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2