Module: Mesa
Branch: master
Commit: 06055121e6386bc74e4558a86ef690eae9556482
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=06055121e6386bc74e4558a86ef690eae9556482

Author: Ilia Mirkin <[email protected]>
Date:   Wed Dec  2 20:24:33 2015 -0500

nv50/ir: fix instruction permutation logic

Signed-off-by: Ilia Mirkin <[email protected]>
Cc: "11.0 11.1" <[email protected]>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to