summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_context.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-05-29 14:25:34 +0800
committerChia-I Wu <[email protected]>2013-06-07 11:13:14 +0800
commit6b14b392d04d8f1b43d565f65cdbd738b9f950a7 (patch)
treecbb8d861f73a43f95d8fb7b9d848b9f872d4d47d /src/gallium/drivers/ilo/ilo_context.h
parentf0af29223957a94e24ae45921da080bc99037d69 (diff)
ilo: switch to ilo states for VF stage
Define and use struct ilo_vb_state; struct ilo_ve_state; struct ilo_ib_state; in ilo_context.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_context.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.h b/src/gallium/drivers/ilo/ilo_context.h
index 7d691399b68..07905b70176 100644
--- a/src/gallium/drivers/ilo/ilo_context.h
+++ b/src/gallium/drivers/ilo/ilo_context.h
@@ -41,11 +41,6 @@ struct ilo_cp;
struct ilo_screen;
struct ilo_shader_state;
-struct ilo_vertex_element {
- struct pipe_vertex_element elements[PIPE_MAX_ATTRIBS];
- unsigned num_elements;
-};
-
struct ilo_context {
struct pipe_context base;
@@ -61,13 +56,16 @@ struct ilo_context {
uint32_t dirty;
+ struct ilo_vb_state vb;
+ const struct ilo_ve_state *ve;
+ struct ilo_ib_state ib;
+
struct pipe_blend_state *blend;
struct pipe_rasterizer_state *rasterizer;
struct pipe_depth_stencil_alpha_state *depth_stencil_alpha;
struct ilo_shader_state *fs;
struct ilo_shader_state *vs;
struct ilo_shader_state *gs;
- struct ilo_vertex_element *vertex_elements;
struct pipe_blend_color blend_color;
struct pipe_stencil_ref stencil_ref;
@@ -77,12 +75,6 @@ struct ilo_context {
struct pipe_poly_stipple poly_stipple;
struct pipe_scissor_state scissor;
struct pipe_viewport_state viewport;
- struct pipe_index_buffer index_buffer;
-
- struct {
- struct pipe_vertex_buffer buffers[PIPE_MAX_ATTRIBS];
- unsigned num_buffers;
- } vertex_buffers;
struct {
struct pipe_sampler_state *samplers[ILO_MAX_SAMPLERS];