From: Ilia Mirkin Date: Thu, 20 Oct 2016 03:59:15 +0000 (-0400) Subject: nv50/ir: it appears that OP_DISCARD can't take a join modifier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b7eb7170d16ddb0963900ccf59b39956219373c;p=mesa.git 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 --- 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