mesa/st: Add VARYING_SLOT_TEX[1-7] to st_translate_geometry_program().
authorBryan Cain <bryancain3@gmail.com>
Fri, 15 Feb 2013 14:53:20 +0000 (08:53 -0600)
committerDave Airlie <airlied@redhat.com>
Thu, 17 Oct 2013 07:35:42 +0000 (08:35 +0100)
v2 (Paul Berry <stereotype441@gmail.com>: Split out to separate patch
(previously this was part of "glsl: add builtins for geometry
shaders.")

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_program.c

index 60cc37cf8ce64078e436724eb3345400760c2c1d..211b879e0d8edd0a8aed3805aa41bce8c99c4d8b 100644 (file)
@@ -911,6 +911,13 @@ st_translate_geometry_program(struct st_context *st,
             stgp->input_semantic_index[slot] = 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:
             stgp->input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
             stgp->input_semantic_index[slot] = num_generic++;
             break;