mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 16:28:08 +02:00
st/mesa: remove special-case cyl-wrap code
Cylinder wrap mode works with perspective interpolation now.
This commit is contained in:
parent
5fbb62f761
commit
dd98a979b6
1 changed files with 1 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue