summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_vs.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-28 14:13:11 -0600
committerBrian Paul <brianp@vmware.com>2010-04-28 15:25:50 -0600
commit9523d78dde7f2e819275ecb39cdeafe50eb65f13 (patch)
tree315c58eabf205948afa1be7ab8607d711e36f8ac /src/gallium/drivers/llvmpipe/lp_state_vs.c
parent2176cad7dc478db3a329521a13d5537a8d99aedc (diff)
llvmpipe: make shader-related functions static, clean-up initializations
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_vs.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_vs.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_vs.c b/src/gallium/drivers/llvmpipe/lp_state_vs.c
index 118feccc8e..f2d8808990 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_vs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_vs.c
@@ -38,7 +38,7 @@
#include "lp_state.h"
-void *
+static void *
llvmpipe_create_vs_state(struct pipe_context *pipe,
const struct pipe_shader_state *templ)
{
@@ -76,7 +76,7 @@ fail:
}
-void
+static void
llvmpipe_bind_vs_state(struct pipe_context *pipe, void *_vs)
{
struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
@@ -94,7 +94,7 @@ llvmpipe_bind_vs_state(struct pipe_context *pipe, void *_vs)
}
-void
+static void
llvmpipe_delete_vs_state(struct pipe_context *pipe, void *vs)
{
struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
@@ -106,3 +106,13 @@ llvmpipe_delete_vs_state(struct pipe_context *pipe, void *vs)
FREE( (void *)state->shader.tokens );
FREE( state );
}
+
+
+
+void
+llvmpipe_init_vs_funcs(struct llvmpipe_context *llvmpipe)
+{
+ llvmpipe->pipe.create_vs_state = llvmpipe_create_vs_state;
+ llvmpipe->pipe.bind_vs_state = llvmpipe_bind_vs_state;
+ llvmpipe->pipe.delete_vs_state = llvmpipe_delete_vs_state;
+}