summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_fs.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-22 19:07:56 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:40 +0100
commit3f36f4b0519f7a568d6de9919de1001880ab5c8a (patch)
tree25b9f629886fb981b8629a8e964ace7030769ffa /src/gallium/drivers/llvmpipe/lp_state_fs.c
parentc3b7406667c4bda68026a652aca54224e8f80da3 (diff)
llvmpipe: Split off vs stuff from lp_state_fs.c.
lp_state_fs.c is already too big without it.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 9b0e7cdd37..5bd0d7b982 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -597,66 +597,6 @@ llvmpipe_delete_fs_state(struct pipe_context *pipe, void *fs)
}
-void *
-llvmpipe_create_vs_state(struct pipe_context *pipe,
- const struct pipe_shader_state *templ)
-{
- struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
- struct lp_vertex_shader *state;
-
- state = CALLOC_STRUCT(lp_vertex_shader);
- if (state == NULL )
- goto fail;
-
- /* copy shader tokens, the ones passed in will go away.
- */
- state->shader.tokens = tgsi_dup_tokens(templ->tokens);
- if (state->shader.tokens == NULL)
- goto fail;
-
- state->draw_data = draw_create_vertex_shader(llvmpipe->draw, templ);
- if (state->draw_data == NULL)
- goto fail;
-
- return state;
-
-fail:
- if (state) {
- FREE( (void *)state->shader.tokens );
- FREE( state->draw_data );
- FREE( state );
- }
- return NULL;
-}
-
-
-void
-llvmpipe_bind_vs_state(struct pipe_context *pipe, void *vs)
-{
- struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
-
- llvmpipe->vs = (const struct lp_vertex_shader *)vs;
-
- draw_bind_vertex_shader(llvmpipe->draw,
- (llvmpipe->vs ? llvmpipe->vs->draw_data : NULL));
-
- llvmpipe->dirty |= LP_NEW_VS;
-}
-
-
-void
-llvmpipe_delete_vs_state(struct pipe_context *pipe, void *vs)
-{
- struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
-
- struct lp_vertex_shader *state =
- (struct lp_vertex_shader *)vs;
-
- draw_delete_vertex_shader(llvmpipe->draw, state->draw_data);
- FREE( state );
-}
-
-
void
llvmpipe_set_constant_buffer(struct pipe_context *pipe,