diff options
author | Brian Paul <brianp@vmware.com> | 2010-09-25 14:08:49 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-09-25 14:25:40 -0600 |
commit | bd13a0d282d5468c083d06f4443dfaf375e01dda (patch) | |
tree | e16a2471f5bbf0186520ff77ea87aaee4874764a /src/gallium/drivers/softpipe/sp_state_rasterizer.c | |
parent | eed4509b086828c6229a7b1865978ffa27377874 (diff) |
softpipe: make rasterizer state functions static
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state_rasterizer.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_rasterizer.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_rasterizer.c b/src/gallium/drivers/softpipe/sp_state_rasterizer.c index c9ede09f26..3cd4acd743 100644 --- a/src/gallium/drivers/softpipe/sp_state_rasterizer.c +++ b/src/gallium/drivers/softpipe/sp_state_rasterizer.c @@ -33,15 +33,17 @@ -void * +static void * softpipe_create_rasterizer_state(struct pipe_context *pipe, const struct pipe_rasterizer_state *rast) { return mem_dup(rast, sizeof(*rast)); } -void softpipe_bind_rasterizer_state(struct pipe_context *pipe, - void *rasterizer) + +static void +softpipe_bind_rasterizer_state(struct pipe_context *pipe, + void *rasterizer) { struct softpipe_context *softpipe = softpipe_context(pipe); @@ -56,10 +58,19 @@ void softpipe_bind_rasterizer_state(struct pipe_context *pipe, softpipe->dirty |= SP_NEW_RASTERIZER; } -void softpipe_delete_rasterizer_state(struct pipe_context *pipe, - void *rasterizer) + +static void +softpipe_delete_rasterizer_state(struct pipe_context *pipe, + void *rasterizer) { FREE( rasterizer ); } +void +softpipe_init_rasterizer_funcs(struct pipe_context *pipe) +{ + pipe->create_rasterizer_state = softpipe_create_rasterizer_state; + pipe->bind_rasterizer_state = softpipe_bind_rasterizer_state; + pipe->delete_rasterizer_state = softpipe_delete_rasterizer_state; +} |