From bc308122ccfc1903276bc8f0ab40b07175929527 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 13 Nov 2017 12:43:36 +1100 Subject: [PATCH] gallium/tgsi: add tess output supoort 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c index 31be7d946b7..c014115918e 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c +++ b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c @@ -127,6 +127,14 @@ tgsi_get_gl_varying_semantic(gl_varying_slot attr, *semantic_name = TGSI_SEMANTIC_PCOORD; *semantic_index = 0; break; + case VARYING_SLOT_TESS_LEVEL_OUTER: + *semantic_name = TGSI_SEMANTIC_TESSOUTER; + *semantic_index = 0; + break; + case VARYING_SLOT_TESS_LEVEL_INNER: + *semantic_name = TGSI_SEMANTIC_TESSINNER; + *semantic_index = 0; + break; case VARYING_SLOT_TEX0: case VARYING_SLOT_TEX1: -- 2.30.2