From: Christoph Bumiller Date: Mon, 2 Apr 2012 18:53:46 +0000 (+0200) Subject: nv50/ir/opt: fix combineSt access to wrong instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef7f9f68cfe71b1f812e59abc644a54a0b80dd06;p=mesa.git nv50/ir/opt: fix combineSt access to wrong instruction --- 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