From 3d21eb3b7d81f1f97673298b7fb7913a5d5e8220 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 13 Nov 2017 12:12:21 +1100 Subject: [PATCH] gallium/tgsi: add prim id to tgsi_get_gl_varying_semantic() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/auxiliary/tgsi/tgsi_from_mesa.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c index b7a21f29bad..31be7d946b7 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c +++ b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c @@ -62,6 +62,10 @@ tgsi_get_gl_varying_semantic(gl_varying_slot attr, unsigned *semantic_index) { switch (attr) { + case VARYING_SLOT_PRIMITIVE_ID: + *semantic_name = TGSI_SEMANTIC_PRIMID; + *semantic_index = 0; + break; case VARYING_SLOT_POS: *semantic_name = TGSI_SEMANTIC_POSITION; *semantic_index = 0; -- 2.30.2