summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_state.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-06-05 10:23:24 +0800
committerChia-I Wu <[email protected]>2015-06-15 01:07:09 +0800
commit402e155cd3a757a583f81fa6545c855b63947e7c (patch)
tree52f890f60fdfd984f9aa7f16c402b113f69389ed /src/gallium/drivers/ilo/ilo_state.h
parentded7d412d04cf702596e91f36ba586b18f1933a2 (diff)
ilo: embed ilo_state_raster in ilo_rasterizer_state
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_state.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.h b/src/gallium/drivers/ilo/ilo_state.h
index 5541c40ba18..8f6cce2b53a 100644
--- a/src/gallium/drivers/ilo/ilo_state.h
+++ b/src/gallium/drivers/ilo/ilo_state.h
@@ -29,6 +29,7 @@
#define ILO_STATE_H
#include "core/ilo_state_3d.h"
+#include "core/ilo_state_raster.h"
#include "core/ilo_state_sampler.h"
#include "core/ilo_state_surface.h"
#include "core/ilo_state_viewport.h"
@@ -170,6 +171,14 @@ struct ilo_view_state {
unsigned count;
};
+struct ilo_rasterizer_state {
+ struct pipe_rasterizer_state state;
+
+ /* these are invalid until finalize_rasterizer() */
+ struct ilo_state_raster_info info;
+ struct ilo_state_raster rs;
+};
+
struct ilo_viewport_state {
struct ilo_state_viewport_matrix_info matrices[ILO_MAX_VIEWPORTS];
struct ilo_state_viewport_scissor_info scissors[ILO_MAX_VIEWPORTS];
@@ -224,7 +233,8 @@ struct ilo_state_vector {
struct ilo_viewport_state viewport;
- const struct ilo_rasterizer_state *rasterizer;
+ struct ilo_rasterizer_state *rasterizer;
+
struct pipe_poly_stipple poly_stipple;
unsigned sample_mask;