From: Timothy Arceri Date: Mon, 13 Nov 2017 01:12:21 +0000 (+1100) Subject: gallium/tgsi: add prim id to tgsi_get_gl_varying_semantic() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d21eb3b7d81f1f97673298b7fb7913a5d5e8220;p=mesa.git gallium/tgsi: add prim id to tgsi_get_gl_varying_semantic() Reviewed-by: Nicolai Hähnle --- 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;