summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-05 10:18:25 -0700
committerBrian Paul <brianp@vmware.com>2010-02-05 10:18:28 -0700
commitd9ce53ab50eec7b0035b51b83648bb8f8f02c6a9 (patch)
tree895b6ef1aa6a71a1dc1b501fc3941829896fd7a0
parentf90399107eb9b54ea2c76f973ab487c38e61a5f0 (diff)
st/mesa: remove special-case cyl-wrap code
Cylinder wrap mode works with perspective interpolation now.
-rw-r--r--src/mesa/state_tracker/st_program.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 3613405d83..a639003dbd 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -33,7 +33,6 @@
#include "main/imports.h"
#include "main/mtypes.h"
-#include "shader/prog_parameter.h"
#include "shader/prog_print.h"
#include "shader/programopt.h"
@@ -359,14 +358,7 @@ st_translate_fragment_program(struct st_context *st,
assert(attr >= FRAG_ATTRIB_TEX0);
stfp->input_semantic_index[slot] = (attr - FRAG_ATTRIB_TEX0);
stfp->input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
-
- /* XXX this test is very temporary */
- if (stfp->Base.Base.InputFlags[0] & PROG_PARAM_BIT_CYL_WRAP) {
- interpMode[slot] = TGSI_INTERPOLATE_LINEAR;
- }
- else {
- interpMode[slot] = TGSI_INTERPOLATE_PERSPECTIVE;
- }
+ interpMode[slot] = TGSI_INTERPOLATE_PERSPECTIVE;
break;
}
}