From: Karol Herbst Date: Tue, 16 Jun 2020 15:02:06 +0000 (+0200) Subject: nv50/ir/nir: don't emit a restart with set a stream_id X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=636cf22a1f457c786ee068a1c91ed1461d6d3be0;p=mesa.git nv50/ir/nir: don't emit a restart with set a stream_id Signed-off-by: Karol Herbst Tested-by: Ben Skeggs Part-of: --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index 40c1c526224..1638872bdf9 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -1946,12 +1946,17 @@ Converter::visit(nir_intrinsic_instr *insn) } break; } - case nir_intrinsic_emit_vertex: + case nir_intrinsic_emit_vertex: { if (info->io.genUserClip > 0) handleUserClipPlanes(); - // fallthrough + uint32_t idx = nir_intrinsic_stream_id(insn); + mkOp1(getOperation(op), TYPE_U32, NULL, mkImm(idx))->fixed = 1; + break; + } case nir_intrinsic_end_primitive: { uint32_t idx = nir_intrinsic_stream_id(insn); + if (idx) + break; mkOp1(getOperation(op), TYPE_U32, NULL, mkImm(idx))->fixed = 1; break; }