mesa/st: handle gl_Layer input semantic
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Jun 2014 23:12:24 +0000 (19:12 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 Jun 2014 23:23:16 +0000 (19:23 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_program.c

index 26eb9786dcc8f1b33fb785ac677fa73779512065..1df411c3b87b5c457d8ad53ff2daead541c34e61 100644 (file)
@@ -572,6 +572,11 @@ st_translate_fragment_program(struct st_context *st,
             input_semantic_index[slot] = 0;
             interpMode[slot] = TGSI_INTERPOLATE_CONSTANT;
             break;
+         case VARYING_SLOT_LAYER:
+            input_semantic_name[slot] = TGSI_SEMANTIC_LAYER;
+            input_semantic_index[slot] = 0;
+            interpMode[slot] = TGSI_INTERPOLATE_CONSTANT;
+            break;
          case VARYING_SLOT_VIEWPORT:
             input_semantic_name[slot] = TGSI_SEMANTIC_VIEWPORT_INDEX;
             input_semantic_index[slot] = 0;