Skip to contentSkip to conversation

nv50/ir: we can't replace 0x0 with the zero reg for SHLADD

PATCH New Karol Herbst 1 participant 1 message Apr 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nv50/ir: we can't replace 0x0 with the zero reg for SHLADD

fixes a crash in Alien Isolation

Cc 13.0 17.0 17.1 <[email protected]>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +1 -1
index 732e1a93b4..4815d6df07 100644
@@ -740,7 +740,7 @@ NVC0LegalizePostRA::visit(BasicBlock *bb)
                next = hi;
          }
 
-         if (i->op != OP_MOV && i->op != OP_PFETCH)
+         if (i->op != OP_MOV && i->op != OP_PFETCH && i->op != OP_SHLADD)
             replaceZero(i);
       }
    }
Signature · 6 lines
2.12.2

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