summaryrefslogtreecommitdiff
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-21 11:20:29 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-21 11:20:29 -0600
commite9259ad0d7f674a1f2f9156ba0baeedc0e7d0d54 (patch)
tree532a8e57afc6d1a86207c51bd51e79aa7e531f43 /src/mesa/pipe
parent97b81eb98f57e9405ce3665df24eedd1a1af39fc (diff)
Get rid of TGSI_SEMANTIC_TEXCOORD and just use TGSI_SEMANTIC_GENERIC.
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/i915simple/i915_fpc_translate.c3
-rw-r--r--src/mesa/pipe/i915simple/i915_state_derived.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_state_derived.c7
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_token.h5
4 files changed, 7 insertions, 11 deletions
diff --git a/src/mesa/pipe/i915simple/i915_fpc_translate.c b/src/mesa/pipe/i915simple/i915_fpc_translate.c
index f8266f6adb..24f21f6633 100644
--- a/src/mesa/pipe/i915simple/i915_fpc_translate.c
+++ b/src/mesa/pipe/i915simple/i915_fpc_translate.c
@@ -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:
diff --git a/src/mesa/pipe/i915simple/i915_state_derived.c b/src/mesa/pipe/i915simple/i915_state_derived.c
index e825971199..30a11f1ef2 100644
--- a/src/mesa/pipe/i915simple/i915_state_derived.c
+++ b/src/mesa/pipe/i915simple/i915_state_derived.c
@@ -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;
diff --git a/src/mesa/pipe/softpipe/sp_state_derived.c b/src/mesa/pipe/softpipe/sp_state_derived.c
index 66e5cc48f6..0e78209e30 100644
--- a/src/mesa/pipe/softpipe/sp_state_derived.c
+++ b/src/mesa/pipe/softpipe/sp_state_derived.c
@@ -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;
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_token.h b/src/mesa/pipe/tgsi/exec/tgsi_token.h
index 2d468b801e..e6f884c5cf 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_token.h
+++ b/src/mesa/pipe/tgsi/exec/tgsi_token.h
@@ -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
{