summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-01 13:45:53 -0600
committerBrian <[email protected]>2007-10-01 13:45:53 -0600
commitb13618c3167002a823e9bb1e744a0a316fd0e2bf (patch)
tree9aac1a463a433d9b4273aad9a1aa86feac79b8f7 /src/mesa/state_tracker/st_program.c
parent2727cfddbf64add52181bed999938a90811f01a3 (diff)
fix a few vert/frag program items to get i915 driver going again
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r--src/mesa/state_tracker/st_program.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index a41b953a21d..a00f296d15f 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -281,12 +281,11 @@ st_translate_fragment_program(struct st_context *st,
GLuint attr;
GLbitfield inputsRead = stfp->Base.Base.InputsRead;
- /* Check if all fragment programs need the fragment position (in order
- * to do perspective-corrected interpolation).
+ /* For software rendering, we always need the fragment input position
+ * in order to calculate interpolated values.
+ * For i915, we always want to emit the semantic info for position.
*/
- /* XXX temporary! */
- if (st->pipe->get_param(st->pipe, PIPE_PARAM_FS_NEEDS_POS))
- inputsRead |= FRAG_BIT_WPOS;
+ inputsRead |= FRAG_BIT_WPOS;
memset(&fs, 0, sizeof(fs));