summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-04-02 20:53:46 +0200
committerChristoph Bumiller <[email protected]>2012-04-14 21:54:03 +0200
commitef7f9f68cfe71b1f812e59abc644a54a0b80dd06 (patch)
treea0cdc202974f91d1408687f08762eee634207246 /src/gallium/drivers/nv50
parentbb9c15bac42cf323ef267095b33031ffc1d4fba4 (diff)
nv50/ir/opt: fix combineSt access to wrong instruction
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
index 3bdd5c8533c..f5262006c11 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
@@ -1316,7 +1316,7 @@ MemoryOpt::combineSt(Record *rec, Instruction *st)
}
// set record's values as low sources of @st
for (j = 1; sizeRc; ++j) {
- sizeRc -= st->getSrc(j)->reg.size;
+ sizeRc -= rec->insn->getSrc(j)->reg.size;
st->setSrc(j, rec->insn->getSrc(j));
}
// set saved values as high sources of @st