From: Ilia Mirkin Date: Thu, 3 Dec 2015 01:24:33 +0000 (-0500) Subject: nv50/ir: fix instruction permutation logic X-Git-Tag: upstream/17.1.0~14062 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06055121e6386bc74e4558a86ef690eae9556482;p=platform%2Fupstream%2Fmesa.git nv50/ir: fix instruction permutation logic Signed-off-by: Ilia Mirkin Cc: "11.0 11.1" --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp index fa8ee07..9f0e073 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp @@ -291,7 +291,7 @@ void BasicBlock::permuteAdjacent(Instruction *a, Instruction *b) if (b->prev) b->prev->next = b; - if (a->prev) + if (a->next) a->next->prev = a; }