summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2011-11-17 18:23:28 +0100
committerChristoph Bumiller <[email protected]>2012-04-14 21:54:02 +0200
commit90f0fac65524fbc4e2f2d396d20d9808e4a0a95c (patch)
treece1d58e270c57c7a40e25005a529d02769a96fdd /src/gallium
parent5df92c81c3a2132bc2974d68a09fd28076a61c5e (diff)
nv50/ir/opt: Update the symbol size when combining loads and stores.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}