From: Ilia Mirkin Date: Thu, 3 Dec 2015 01:24:33 +0000 (-0500) Subject: nv50/ir: fix instruction permutation logic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06055121e6386bc74e4558a86ef690eae9556482;p=mesa.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 fa8ee072a92..9f0e0733326 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; }