summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-04-22 14:41:32 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-04-22 14:44:07 -0600
commitb456f1374fc958e53efc80ee38ef343f580c1d6b (patch)
tree02e5e15151a3886f101d82f1c6864bd9b5c1d392 /src/mesa
parent4ebede8c7f43a83adfc73dcca783de2e9efcd9ba (diff)
gallium: st_translate_fragment_program() is void now
The return value was never used.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_program.c5
-rw-r--r--src/mesa/state_tracker/st_program.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 4d1ef1bf3d..3648ded8a1 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -315,7 +315,7 @@ st_translate_vertex_program(struct st_context *st,
* \param tokensOut destination for TGSI tokens
* \return pointer to cached pipe_shader object.
*/
-const struct cso_fragment_shader *
+void
st_translate_fragment_program(struct st_context *st,
struct st_fragment_program *stfp,
const GLuint inputMapping[])
@@ -325,7 +325,6 @@ st_translate_fragment_program(struct st_context *st,
GLuint outputMapping[FRAG_RESULT_MAX];
GLuint defaultInputMapping[FRAG_ATTRIB_MAX];
struct pipe_shader_state fs;
- const struct cso_fragment_shader *cso;
GLuint interpMode[16]; /* XXX size? */
GLuint attr;
const GLbitfield inputsRead = stfp->Base.Base.InputsRead;
@@ -475,7 +474,5 @@ st_translate_fragment_program(struct st_context *st,
if (TGSI_DEBUG)
tgsi_dump( fs.tokens, 0/*TGSI_DUMP_VERBOSE*/ );
-
- return cso;
}
diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h
index dced31e88e..e58b8a1851 100644
--- a/src/mesa/state_tracker/st_program.h
+++ b/src/mesa/state_tracker/st_program.h
@@ -111,7 +111,7 @@ st_vertex_program( struct gl_vertex_program *vp )
}
-extern const struct cso_fragment_shader *
+extern void
st_translate_fragment_program(struct st_context *st,
struct st_fragment_program *fp,
const GLuint inputMapping[]);