summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-10-29 11:04:05 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-10-29 11:04:05 -0600
commit75b92764a7820558fb2b6cd27a2ab0487ef2f9ba (patch)
treec08ad91e6b9360c0a1121d50f5fdf2317ffd128a /src/gallium/auxiliary/draw
parent7640264064c2cbc9922f7f3df51f7caa7b449e8e (diff)
gallium: clean-ups
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_ppc.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_ppc.c b/src/gallium/auxiliary/draw/draw_vs_ppc.c
index 19f6c4ee5b..d720c7bbd5 100644
--- a/src/gallium/auxiliary/draw/draw_vs_ppc.c
+++ b/src/gallium/auxiliary/draw/draw_vs_ppc.c
@@ -64,8 +64,6 @@ struct draw_ppc_vertex_shader {
struct ppc_function ppc_program;
codegen_function func;
-
- struct tgsi_exec_machine *machine;
};
@@ -73,11 +71,12 @@ static void
vs_ppc_prepare( struct draw_vertex_shader *base,
struct draw_context *draw )
{
+ /* nothing */
}
-
-/* Simplified vertex shader interface for the pt paths. Given the
+/**
+ * Simplified vertex shader interface for the pt paths. Given the
* complexity of code-generating all the above operations together,
* it's time to try doing all the other stuff separately.
*/
@@ -91,7 +90,6 @@ vs_ppc_run_linear( struct draw_vertex_shader *base,
unsigned output_stride )
{
struct draw_ppc_vertex_shader *shader = (struct draw_ppc_vertex_shader *)base;
- struct tgsi_exec_machine *machine = shader->machine;
unsigned int i;
#define MAX_VERTICES 4
@@ -154,8 +152,6 @@ vs_ppc_run_linear( struct draw_vertex_shader *base,
}
-
-
static void
vs_ppc_delete( struct draw_vertex_shader *base )
{
@@ -172,7 +168,7 @@ vs_ppc_delete( struct draw_vertex_shader *base )
struct draw_vertex_shader *
draw_create_vs_ppc(struct draw_context *draw,
- const struct pipe_shader_state *templ)
+ const struct pipe_shader_state *templ)
{
struct draw_ppc_vertex_shader *vs;
@@ -201,8 +197,6 @@ draw_create_vs_ppc(struct draw_context *draw,
vs->base.immediates = align_malloc(TGSI_EXEC_NUM_IMMEDIATES * 4 *
sizeof(float), 16);
- vs->machine = &draw->vs.machine;
-
ppc_init_func( &vs->ppc_program, 2000 ); /* XXX fix limit */
if (!tgsi_emit_ppc( (struct tgsi_token *) vs->base.state.tokens,