Get rid of TGSI_SEMANTIC_TEXCOORD and just use TGSI_SEMANTIC_GENERIC.
authorBrian <brian.paul@tungstengraphics.com>
Fri, 21 Sep 2007 17:20:29 +0000 (11:20 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 21 Sep 2007 17:20:29 +0000 (11:20 -0600)
src/mesa/pipe/i915simple/i915_fpc_translate.c
src/mesa/pipe/i915simple/i915_state_derived.c
src/mesa/pipe/softpipe/sp_state_derived.c
src/mesa/pipe/tgsi/exec/tgsi_token.h
src/mesa/state_tracker/st_atom_fs.c
src/mesa/state_tracker/st_atom_vs.c

index f8266f6adbc9cc757d7e0584888939c0c19c78c1..24f21f6633a101abc777b7640b318c8a2d2a18ef 100644 (file)
@@ -178,7 +178,8 @@ src_vector(struct i915_fp_compile *p,
          src = i915_emit_decl(p, REG_TYPE_T, T_FOG_W, D0_CHANNEL_W);
          src = swizzle(src, W, W, W, W);
          break;
-      case TGSI_SEMANTIC_TEXCOORD:
+      case TGSI_SEMANTIC_GENERIC:
+         /* usually a texcoord */
          src = i915_emit_decl(p, REG_TYPE_T, T_TEX0 + sem_ind, D0_CHANNEL_ALL);
          break;
       default:
index e825971199f0cd57c75cb616d4930ed6890dfb90..30a11f1ef26fce145c9121cf0f216fa2f13f7f95 100644 (file)
@@ -74,7 +74,8 @@ static void calculate_vertex_layout( struct i915_context *i915 )
             vinfo->hwfmt[0] |= S4_VFMT_SPEC_FOG;
          }
          break;
-      case TGSI_SEMANTIC_TEXCOORD:
+      case TGSI_SEMANTIC_GENERIC:
+         /* usually a texcoord */
          {
             const uint unit = fs->input_semantic_index[i];
             uint hwtc;
index 66e5cc48f68e7ba7cbd8211edcd8aadbd9169e59..0e78209e3057b9a22c3a7cc2107951e4ee7c8d45 100644 (file)
@@ -99,13 +99,8 @@ static void calculate_vertex_layout( struct softpipe_context *softpipe )
 #endif
          softpipe->psize_slot = i;
          /*case TGSI_SEMANTIC_TEXCOORD:*/
-      case TGSI_SEMANTIC_TEXCOORD:
-         /* unit = fs->input_semantic_index[i] */
-         draw_emit_vertex_attr(vinfo,
-                               FORMAT_4F, INTERP_PERSPECTIVE);
-         softpipe->need_w = TRUE;
-         break;
       case TGSI_SEMANTIC_GENERIC:
+         /* this includes texcoords and varying vars */
          draw_emit_vertex_attr(vinfo, FORMAT_4F, INTERP_PERSPECTIVE);
          softpipe->need_w = TRUE;
          break;
index 2d468b801e7f09eb6a3de72ea340c0f6ababc2e0..e6f884c5cf7672fd6f6a2e492e5d66364a132078 100644 (file)
@@ -107,9 +107,8 @@ struct tgsi_declaration_interpolation
 #define TGSI_SEMANTIC_COLOR    1
 #define TGSI_SEMANTIC_BCOLOR   2 /**< back-face color */
 #define TGSI_SEMANTIC_FOG      3
-#define TGSI_SEMANTIC_TEXCOORD 4
-#define TGSI_SEMANTIC_GENERIC  5
-#define TGSI_SEMANTIC_COUNT    6 /**< number of semantic values */
+#define TGSI_SEMANTIC_GENERIC  4
+#define TGSI_SEMANTIC_COUNT    5 /**< number of semantic values */
 
 struct tgsi_declaration_semantic
 {
index dd9d2476ba2b1515d4d997d050d7bbaae649d62a..20042fc6dcfa330ee183305f2af4ad75cf95d947 100644 (file)
@@ -102,7 +102,7 @@ st_translate_fragment_shader(struct st_context *st,
          case FRAG_ATTRIB_TEX5:
          case FRAG_ATTRIB_TEX6:
          case FRAG_ATTRIB_TEX7:
-            fs.input_semantic_name[fs.num_inputs] = TGSI_SEMANTIC_TEXCOORD;
+            fs.input_semantic_name[fs.num_inputs] = TGSI_SEMANTIC_GENERIC;
             fs.input_semantic_index[fs.num_inputs] = attr - FRAG_ATTRIB_TEX0;
             interpMode[fs.num_inputs] = TGSI_INTERPOLATE_PERSPECTIVE;
             break;
index 2add3dcfef2693f3922e5eacf03d43d44be42a8d..ef3ed802d7673455033716fbe86a83c8e538a219 100644 (file)
@@ -99,7 +99,7 @@ st_translate_vertex_shader(struct st_context *st,
          case VERT_ATTRIB_TEX5:
          case VERT_ATTRIB_TEX6:
          case VERT_ATTRIB_TEX7:
-            vs.input_semantic_name[vs.num_inputs] = TGSI_SEMANTIC_TEXCOORD;
+            vs.input_semantic_name[vs.num_inputs] = TGSI_SEMANTIC_GENERIC;
             vs.input_semantic_index[vs.num_inputs] = attr - VERT_ATTRIB_TEX0;
             break;
          case VERT_ATTRIB_GENERIC0:
@@ -164,7 +164,7 @@ st_translate_vertex_shader(struct st_context *st,
          case VERT_RESULT_TEX5:
          case VERT_RESULT_TEX6:
          case VERT_RESULT_TEX7:
-            vs.output_semantic_name[vs.num_outputs] = TGSI_SEMANTIC_TEXCOORD;
+            vs.output_semantic_name[vs.num_outputs] = TGSI_SEMANTIC_GENERIC;
             vs.output_semantic_index[vs.num_outputs] = attr - VERT_RESULT_TEX0;
             break;
          case VERT_RESULT_VAR0: