st/mesa: remove dead stfp input_map array
Was being calculated and not used. Also was probably incorrect...
This commit is contained in:
@@ -286,7 +286,6 @@ st_translate_fragment_program(struct st_context *st,
|
|||||||
enum pipe_error error;
|
enum pipe_error error;
|
||||||
const GLbitfield inputsRead = stfp->Base.Base.InputsRead;
|
const GLbitfield inputsRead = stfp->Base.Base.InputsRead;
|
||||||
struct ureg_program *ureg;
|
struct ureg_program *ureg;
|
||||||
GLuint vslot = 0;
|
|
||||||
|
|
||||||
uint fs_num_inputs = 0;
|
uint fs_num_inputs = 0;
|
||||||
|
|
||||||
@@ -294,12 +293,6 @@ st_translate_fragment_program(struct st_context *st,
|
|||||||
ubyte fs_output_semantic_index[PIPE_MAX_SHADER_OUTPUTS];
|
ubyte fs_output_semantic_index[PIPE_MAX_SHADER_OUTPUTS];
|
||||||
uint fs_num_outputs = 0;
|
uint fs_num_outputs = 0;
|
||||||
|
|
||||||
/* which vertex output goes to the first fragment input: */
|
|
||||||
if (inputsRead & FRAG_BIT_WPOS)
|
|
||||||
vslot = 0;
|
|
||||||
else
|
|
||||||
vslot = 1;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert Mesa program inputs to TGSI input register semantics.
|
* Convert Mesa program inputs to TGSI input register semantics.
|
||||||
*/
|
*/
|
||||||
@@ -309,8 +302,6 @@ st_translate_fragment_program(struct st_context *st,
|
|||||||
|
|
||||||
defaultInputMapping[attr] = slot;
|
defaultInputMapping[attr] = slot;
|
||||||
|
|
||||||
stfp->input_map[slot] = vslot++;
|
|
||||||
|
|
||||||
fs_num_inputs++;
|
fs_num_inputs++;
|
||||||
|
|
||||||
switch (attr) {
|
switch (attr) {
|
||||||
|
@@ -55,9 +55,6 @@ struct st_fragment_program
|
|||||||
GLuint input_to_slot[FRAG_ATTRIB_MAX]; /**< Maps FRAG_ATTRIB_x to slot */
|
GLuint input_to_slot[FRAG_ATTRIB_MAX]; /**< Maps FRAG_ATTRIB_x to slot */
|
||||||
GLuint num_input_slots;
|
GLuint num_input_slots;
|
||||||
|
|
||||||
/** map FP input back to VP output */
|
|
||||||
GLuint input_map[PIPE_MAX_SHADER_INPUTS];
|
|
||||||
|
|
||||||
ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS];
|
ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS];
|
||||||
ubyte input_semantic_index[PIPE_MAX_SHADER_INPUTS];
|
ubyte input_semantic_index[PIPE_MAX_SHADER_INPUTS];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user