From 7b7eb7170d16ddb0963900ccf59b39956219373c Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Wed, 19 Oct 2016 23:59:15 -0400 Subject: [PATCH] nv50/ir: it appears that OP_DISCARD can't take a join modifier nvdisasm does not print a .S even though the bit is set. Signed-off-by: Ilia Mirkin Reviewed-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 0fb1a7803bd..8494c885f9e 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -2968,6 +2968,7 @@ FlatteningPass::visit(BasicBlock *bb) insn = insn->prev; if (insn && !insn->getPredicate() && !insn->asFlow() && + insn->op != OP_DISCARD && insn->op != OP_TEXBAR && !isTextureOp(insn->op) && // probably just nve4 !isSurfaceOp(insn->op) && // not confirmed -- 2.30.2