summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-21 12:06:08 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-21 12:06:08 -0600
commitda45890818ab5ae94592208e3581b5c2febaa6b4 (patch)
tree4f6d9fa272e0b93213073f24913bc86899c8599f /src/mesa/state_tracker
parent46f606e9715145218331a04f0d1f66fb9f8531d6 (diff)
Fix up some point size breakage. Start on fogcoord too.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atom_fs.c4
-rw-r--r--src/mesa/state_tracker/st_atom_vs.c10
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.c3
3 files changed, 16 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_fs.c b/src/mesa/state_tracker/st_atom_fs.c
index 1e7886a469..f8a1dc83cf 100644
--- a/src/mesa/state_tracker/st_atom_fs.c
+++ b/src/mesa/state_tracker/st_atom_fs.c
@@ -95,7 +95,9 @@ st_translate_fragment_shader(struct st_context *st,
interpMode[fs.num_inputs] = TGSI_INTERPOLATE_LINEAR;
break;
case FRAG_ATTRIB_FOGC:
- assert(0);
+ fs.input_semantic_name[fs.num_inputs] = TGSI_SEMANTIC_FOG;
+ fs.input_semantic_index[fs.num_inputs] = 0;
+ interpMode[fs.num_inputs] = TGSI_INTERPOLATE_PERSPECTIVE;
break;
case FRAG_ATTRIB_TEX0:
case FRAG_ATTRIB_TEX1:
diff --git a/src/mesa/state_tracker/st_atom_vs.c b/src/mesa/state_tracker/st_atom_vs.c
index e4e9902e65..ae51e9764b 100644
--- a/src/mesa/state_tracker/st_atom_vs.c
+++ b/src/mesa/state_tracker/st_atom_vs.c
@@ -91,6 +91,10 @@ st_translate_vertex_shader(struct st_context *st,
vs.input_semantic_name[vs.num_inputs] = TGSI_SEMANTIC_COLOR;
vs.input_semantic_index[vs.num_inputs] = 1;
break;
+ case VERT_ATTRIB_FOG:
+ vs.input_semantic_name[vs.num_inputs] = TGSI_SEMANTIC_FOG;
+ vs.input_semantic_index[vs.num_inputs] = 0;
+ break;
case VERT_ATTRIB_TEX0:
case VERT_ATTRIB_TEX1:
case VERT_ATTRIB_TEX2:
@@ -152,7 +156,13 @@ st_translate_vertex_shader(struct st_context *st,
vs.output_semantic_index[vs.num_outputs] = 1;
break;
case VERT_RESULT_FOGC:
+ vs.output_semantic_name[vs.num_outputs] = TGSI_SEMANTIC_FOG;
+ vs.output_semantic_index[vs.num_outputs] = 0;
+ break;
case VERT_RESULT_PSIZ:
+ vs.output_semantic_name[vs.num_outputs] = TGSI_SEMANTIC_PSIZE;
+ vs.output_semantic_index[vs.num_outputs] = 0;
+ break;
case VERT_RESULT_EDGE:
assert(0);
break;
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index 56c98916ed..2311bddc65 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -265,6 +265,9 @@ st_RasterPos(GLcontext *ctx, const GLfloat v[4])
float *buf_map;
struct pipe_feedback_buffer fb_buf;
+ /** XXX TEMPORARILY DISABLE */
+ return;
+
st_validate_state(ctx->st);
/* setup vertex buffers */