aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-11-13 12:43:36 +1100
committerTimothy Arceri <[email protected]>2017-11-15 08:26:34 +1100
commitbc308122ccfc1903276bc8f0ab40b07175929527 (patch)
treee6ae8ad535c9342c0c67b9eee8b8b7ce0cc063b7 /src/gallium/auxiliary/tgsi
parent4ae9f0b58059b39907b1725a822b54a9f8555967 (diff)
gallium/tgsi: add tess output supoort to tgsi_get_gl_varying_semantic()
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_from_mesa.c8
1 files changed, 8 insertions, 0 deletions
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: