diff options
author | Chia-I Wu <[email protected]> | 2013-06-20 12:46:36 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-25 11:54:14 +0800 |
commit | f0afedeb750d9f696242294c730827a28bdaac70 (patch) | |
tree | 1b3aaf271ce10f7fca03598a14eacf3bd2934f57 /src/gallium/drivers/ilo/ilo_state.c | |
parent | 4d789c76dce580d754fe146041d7a1118524a4ff (diff) |
ilo: use multiple entry points for shader creation
Replace ilo_shader_state_create() by
ilo_shader_create_vs()
ilo_shader_create_gs()
ilo_shader_create_fs()
ilo_shader_create_cs()
Rename ilo_shader_state_destroy() to ilo_shader_destroy(). The old
ilo_shader_destroy() is renamed to ilo_shader_destroy_kernel().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index 80fa7414e82..69fe3833793 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -354,7 +354,7 @@ ilo_create_fs_state(struct pipe_context *pipe, struct ilo_context *ilo = ilo_context(pipe); struct ilo_shader_state *shader; - shader = ilo_shader_state_create(ilo, PIPE_SHADER_FRAGMENT, state); + shader = ilo_shader_create_fs(ilo->dev, state, ilo); assert(shader); ilo_shader_cache_add(ilo->shader_cache, shader); @@ -379,7 +379,7 @@ ilo_delete_fs_state(struct pipe_context *pipe, void *state) struct ilo_shader_state *fs = (struct ilo_shader_state *) state; ilo_shader_cache_remove(ilo->shader_cache, fs); - ilo_shader_state_destroy(fs); + ilo_shader_destroy(fs); } static void * @@ -389,7 +389,7 @@ ilo_create_vs_state(struct pipe_context *pipe, struct ilo_context *ilo = ilo_context(pipe); struct ilo_shader_state *shader; - shader = ilo_shader_state_create(ilo, PIPE_SHADER_VERTEX, state); + shader = ilo_shader_create_vs(ilo->dev, state, ilo); assert(shader); ilo_shader_cache_add(ilo->shader_cache, shader); @@ -414,7 +414,7 @@ ilo_delete_vs_state(struct pipe_context *pipe, void *state) struct ilo_shader_state *vs = (struct ilo_shader_state *) state; ilo_shader_cache_remove(ilo->shader_cache, vs); - ilo_shader_state_destroy(vs); + ilo_shader_destroy(vs); } static void * @@ -424,7 +424,7 @@ ilo_create_gs_state(struct pipe_context *pipe, struct ilo_context *ilo = ilo_context(pipe); struct ilo_shader_state *shader; - shader = ilo_shader_state_create(ilo, PIPE_SHADER_GEOMETRY, state); + shader = ilo_shader_create_gs(ilo->dev, state, ilo); assert(shader); ilo_shader_cache_add(ilo->shader_cache, shader); @@ -449,7 +449,7 @@ ilo_delete_gs_state(struct pipe_context *pipe, void *state) struct ilo_shader_state *gs = (struct ilo_shader_state *) state; ilo_shader_cache_remove(ilo->shader_cache, gs); - ilo_shader_state_destroy(gs); + ilo_shader_destroy(gs); } static void * @@ -992,7 +992,7 @@ ilo_create_compute_state(struct pipe_context *pipe, struct ilo_context *ilo = ilo_context(pipe); struct ilo_shader_state *shader; - shader = ilo_shader_state_create(ilo, PIPE_SHADER_COMPUTE, state); + shader = ilo_shader_create_cs(ilo->dev, state, ilo); assert(shader); ilo_shader_cache_add(ilo->shader_cache, shader); @@ -1017,7 +1017,7 @@ ilo_delete_compute_state(struct pipe_context *pipe, void *state) struct ilo_shader_state *cs = (struct ilo_shader_state *) state; ilo_shader_cache_remove(ilo->shader_cache, cs); - ilo_shader_state_destroy(cs); + ilo_shader_destroy(cs); } static void |