summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-05 10:18:25 -0700
committerMichal Krol <[email protected]>2010-02-09 15:32:56 +0100
commitdd98a979b6f565f0b0060403fbfad36005278802 (patch)
treebf4c892feccfb1b769b1a05acbbde81bc379e383 /src/mesa/state_tracker
parent5fbb62f761220a81ce7a0093bfe16ea5ea063d44 (diff)
st/mesa: remove special-case cyl-wrap code
Cylinder wrap mode works with perspective interpolation now.
Diffstat (limited to 'src/mesa/state_tracker')
-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 e939ab38218..21ad6fef2b4 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"
@@ -368,14 +367,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;
}
}