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_shader.h | |
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_shader.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_shader.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.h b/src/gallium/drivers/ilo/ilo_shader.h index f286a9f785f..5e457b91e11 100644 --- a/src/gallium/drivers/ilo/ilo_shader.h +++ b/src/gallium/drivers/ilo/ilo_shader.h @@ -55,10 +55,26 @@ ilo_shader_cache_upload(struct ilo_shader_cache *shc, bool incremental); struct ilo_shader_state * -ilo_shader_state_create(const struct ilo_context *ilo, - int type, const void *templ); +ilo_shader_create_vs(const struct ilo_dev_info *dev, + const struct pipe_shader_state *state, + const struct ilo_context *precompile); + +struct ilo_shader_state * +ilo_shader_create_gs(const struct ilo_dev_info *dev, + const struct pipe_shader_state *state, + const struct ilo_context *precompile); + +struct ilo_shader_state * +ilo_shader_create_fs(const struct ilo_dev_info *dev, + const struct pipe_shader_state *state, + const struct ilo_context *precompile); + +struct ilo_shader_state * +ilo_shader_create_cs(const struct ilo_dev_info *dev, + const struct pipe_compute_state *state, + const struct ilo_context *precompile); void -ilo_shader_state_destroy(struct ilo_shader_state *state); +ilo_shader_destroy(struct ilo_shader_state *shader); #endif /* ILO_SHADER_H */ |