[Mesa-dev] [PATCH 3/4] gallium/tgsi: add tess output supoort to tgsi_get_gl_varying_semantic()
Timothy Arceri
tarceri at itsqueeze.com
Mon Nov 13 01:56:30 UTC 2017
---
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 31be7d946b..c014115918 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c
@@ -120,20 +120,28 @@ tgsi_get_gl_varying_semantic(gl_varying_slot attr,
*semantic_index = 0;
break;
case VARYING_SLOT_VIEWPORT:
*semantic_name = TGSI_SEMANTIC_VIEWPORT_INDEX;
*semantic_index = 0;
break;
case VARYING_SLOT_PNTC:
*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:
case VARYING_SLOT_TEX2:
case VARYING_SLOT_TEX3:
case VARYING_SLOT_TEX4:
case VARYING_SLOT_TEX5:
case VARYING_SLOT_TEX6:
case VARYING_SLOT_TEX7:
if (needs_texcoord_semantic) {
--
2.14.3
More information about the mesa-dev
mailing list