summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_context.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2012-12-13 05:05:01 +0800
committerChia-I Wu <[email protected]>2013-04-26 16:16:42 +0800
commit520af667971faccf8996f67a1ff8a3d9c6efa4a4 (patch)
tree60f54d75bdd99a31c77e3ce982349a70ebc08f4a /src/gallium/drivers/ilo/ilo_context.h
parent86940bf41cb86cddab9efffe03c97c793cf3f6f3 (diff)
ilo: add functions to manage shaders
This commits add shader cache, shader state, shader variant, and etc. It does not add the shader compiler though.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_context.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.h b/src/gallium/drivers/ilo/ilo_context.h
index cb2971f7730..d1632bb1db9 100644
--- a/src/gallium/drivers/ilo/ilo_context.h
+++ b/src/gallium/drivers/ilo/ilo_context.h
@@ -58,6 +58,7 @@ struct intel_winsys;
struct intel_bo;
struct ilo_cp;
struct ilo_screen;
+struct ilo_shader_state;
struct ilo_context {
struct pipe_context base;
@@ -78,6 +79,22 @@ struct ilo_context {
struct ilo_cp *cp;
struct intel_bo *last_cp_bo;
+
+ struct pipe_rasterizer_state *rasterizer;
+ struct ilo_shader_state *vs;
+
+ struct pipe_framebuffer_state framebuffer;
+
+ struct {
+ struct pipe_sampler_state *samplers[ILO_MAX_SAMPLERS];
+ unsigned num_samplers;
+ } samplers[PIPE_SHADER_TYPES];
+
+ struct {
+ struct pipe_sampler_view *views[ILO_MAX_SAMPLER_VIEWS];
+ unsigned num_views;
+ } sampler_views[PIPE_SHADER_TYPES];
+
};
static inline struct ilo_context *