gallium/tgsi: add tess output supoort to tgsi_get_gl_varying_semantic()
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 13 Nov 2017 01:43:36 +0000 (12:43 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 14 Nov 2017 21:26:34 +0000 (08:26 +1100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/tgsi/tgsi_from_mesa.c

index 31be7d946b7125adb7c3f529f517caeb6a2aac09..c014115918eb8aed5ae2c03a8bad18262aade9f3 100644 (file)
@@ -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: