From ef7f9f68cfe71b1f812e59abc644a54a0b80dd06 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 2 Apr 2012 20:53:46 +0200 Subject: [PATCH] nv50/ir/opt: fix combineSt access to wrong instruction --- src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2