st/mesa: remove unused-but-set variables in st_program.c
This commit is contained in:
@@ -449,7 +449,6 @@ st_translate_fragment_program(struct st_context *st,
|
|||||||
GLuint inputMapping[FRAG_ATTRIB_MAX];
|
GLuint inputMapping[FRAG_ATTRIB_MAX];
|
||||||
GLuint interpMode[PIPE_MAX_SHADER_INPUTS]; /* XXX size? */
|
GLuint interpMode[PIPE_MAX_SHADER_INPUTS]; /* XXX size? */
|
||||||
GLuint attr;
|
GLuint attr;
|
||||||
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;
|
||||||
GLboolean write_all = GL_FALSE;
|
GLboolean write_all = GL_FALSE;
|
||||||
@@ -606,21 +605,21 @@ st_translate_fragment_program(struct st_context *st,
|
|||||||
if (write_all == GL_TRUE)
|
if (write_all == GL_TRUE)
|
||||||
ureg_property_fs_color0_writes_all_cbufs(ureg, 1);
|
ureg_property_fs_color0_writes_all_cbufs(ureg, 1);
|
||||||
|
|
||||||
error = st_translate_mesa_program(st->ctx,
|
st_translate_mesa_program(st->ctx,
|
||||||
TGSI_PROCESSOR_FRAGMENT,
|
TGSI_PROCESSOR_FRAGMENT,
|
||||||
ureg,
|
ureg,
|
||||||
&stfp->Base.Base,
|
&stfp->Base.Base,
|
||||||
/* inputs */
|
/* inputs */
|
||||||
fs_num_inputs,
|
fs_num_inputs,
|
||||||
inputMapping,
|
inputMapping,
|
||||||
input_semantic_name,
|
input_semantic_name,
|
||||||
input_semantic_index,
|
input_semantic_index,
|
||||||
interpMode,
|
interpMode,
|
||||||
/* outputs */
|
/* outputs */
|
||||||
fs_num_outputs,
|
fs_num_outputs,
|
||||||
outputMapping,
|
outputMapping,
|
||||||
fs_output_semantic_name,
|
fs_output_semantic_name,
|
||||||
fs_output_semantic_index, FALSE );
|
fs_output_semantic_index, FALSE );
|
||||||
|
|
||||||
stfp->tgsi.tokens = ureg_get_tokens( ureg, NULL );
|
stfp->tgsi.tokens = ureg_get_tokens( ureg, NULL );
|
||||||
ureg_destroy( ureg );
|
ureg_destroy( ureg );
|
||||||
@@ -687,7 +686,6 @@ st_translate_geometry_program(struct st_context *st,
|
|||||||
GLuint inputMapping[GEOM_ATTRIB_MAX];
|
GLuint inputMapping[GEOM_ATTRIB_MAX];
|
||||||
GLuint outputMapping[GEOM_RESULT_MAX];
|
GLuint outputMapping[GEOM_RESULT_MAX];
|
||||||
struct pipe_context *pipe = st->pipe;
|
struct pipe_context *pipe = st->pipe;
|
||||||
enum pipe_error error;
|
|
||||||
GLuint attr;
|
GLuint attr;
|
||||||
const GLbitfield inputsRead = stgp->Base.Base.InputsRead;
|
const GLbitfield inputsRead = stgp->Base.Base.InputsRead;
|
||||||
GLuint vslot = 0;
|
GLuint vslot = 0;
|
||||||
@@ -894,22 +892,22 @@ st_translate_geometry_program(struct st_context *st,
|
|||||||
ureg_property_gs_output_prim(ureg, stgp->Base.OutputType);
|
ureg_property_gs_output_prim(ureg, stgp->Base.OutputType);
|
||||||
ureg_property_gs_max_vertices(ureg, stgp->Base.VerticesOut);
|
ureg_property_gs_max_vertices(ureg, stgp->Base.VerticesOut);
|
||||||
|
|
||||||
error = st_translate_mesa_program(st->ctx,
|
st_translate_mesa_program(st->ctx,
|
||||||
TGSI_PROCESSOR_GEOMETRY,
|
TGSI_PROCESSOR_GEOMETRY,
|
||||||
ureg,
|
ureg,
|
||||||
&stgp->Base.Base,
|
&stgp->Base.Base,
|
||||||
/* inputs */
|
/* inputs */
|
||||||
gs_num_inputs,
|
gs_num_inputs,
|
||||||
inputMapping,
|
inputMapping,
|
||||||
stgp->input_semantic_name,
|
stgp->input_semantic_name,
|
||||||
stgp->input_semantic_index,
|
stgp->input_semantic_index,
|
||||||
NULL,
|
NULL,
|
||||||
/* outputs */
|
/* outputs */
|
||||||
gs_num_outputs,
|
gs_num_outputs,
|
||||||
outputMapping,
|
outputMapping,
|
||||||
gs_output_semantic_name,
|
gs_output_semantic_name,
|
||||||
gs_output_semantic_index,
|
gs_output_semantic_index,
|
||||||
FALSE);
|
FALSE);
|
||||||
|
|
||||||
stgp->num_inputs = gs_num_inputs;
|
stgp->num_inputs = gs_num_inputs;
|
||||||
stgp->tgsi.tokens = ureg_get_tokens( ureg, NULL );
|
stgp->tgsi.tokens = ureg_get_tokens( ureg, NULL );
|
||||||
|
Reference in New Issue
Block a user