summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-12-02 20:24:33 -0500
committerIlia Mirkin <[email protected]>2015-12-02 20:41:38 -0500
commit06055121e6386bc74e4558a86ef690eae9556482 (patch)
tree6a7e453bad7b9763996ee63b5e2b6acaef8ddd92
parent11fcf46590129abfa2ca2117a320e8a8052761e4 (diff)
nv50/ir: fix instruction permutation logic
Signed-off-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]>
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}