summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_shader.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-20 16:34:25 +0800
committerChia-I Wu <[email protected]>2013-06-25 12:42:04 +0800
commitd209da5e338ee1f437cbce21e9cba667d60ee557 (patch)
tree23fc047677dde5b9d592cdab65897d6032d1cdf9 /src/gallium/drivers/ilo/ilo_shader.h
parent5c8db569abf3f1e508d57cccb95856936bce29e4 (diff)
ilo: introduce ilo_shader_cso for VS
When a new VS kernel is generated, a newly added function, ilo_gpe_init_vs_cso(), is called to construct 3DSTATE_VS command in ilo_shader_cso. When the command needs to be emitted later, we copy the command from the CSO instead of constructing it dynamically.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_shader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.h b/src/gallium/drivers/ilo/ilo_shader.h
index fa5a556539b..92ad7f6656f 100644
--- a/src/gallium/drivers/ilo/ilo_shader.h
+++ b/src/gallium/drivers/ilo/ilo_shader.h
@@ -62,6 +62,7 @@ struct intel_bo;
struct ilo_context;
struct ilo_shader_cache;
struct ilo_shader_state;
+struct ilo_shader_cso;
struct ilo_shader_cache *
ilo_shader_cache_create(void);
@@ -120,4 +121,7 @@ int
ilo_shader_get_kernel_param(const struct ilo_shader_state *shader,
enum ilo_kernel_param param);
+const struct ilo_shader_cso *
+ilo_shader_get_kernel_cso(const struct ilo_shader_state *shader);
+
#endif /* ILO_SHADER_H */