summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_gpe.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-05-29 14:42:13 +0800
committerChia-I Wu <[email protected]>2013-06-07 11:13:14 +0800
commit130364ad1d5010e9320aaa312309f83746d751d3 (patch)
tree323c2d7a15292c0fdb17c500b9616751d35ea306 /src/gallium/drivers/ilo/ilo_gpe.h
parent3bc8289f49f6f1a7256c7d199d09d3753c10af3a (diff)
ilo: switch to ilo states for CLIP and SF stages
Define and use struct ilo_viewport_state; struct ilo_scissor_state; in ilo_context.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h
index 468398e2e4b..9bf1114e9dc 100644
--- a/src/gallium/drivers/ilo/ilo_gpe.h
+++ b/src/gallium/drivers/ilo/ilo_gpe.h
@@ -39,6 +39,7 @@
#define ILO_MAX_SAMPLERS 16
#define ILO_MAX_SO_BINDINGS 64
#define ILO_MAX_SO_BUFFERS 4
+#define ILO_MAX_VIEWPORTS 1
#define ILO_MAX_VS_SURFACES (ILO_MAX_CONST_BUFFERS + ILO_MAX_SAMPLER_VIEWS)
#define ILO_VS_CONST_SURFACE(i) (i)
@@ -74,4 +75,13 @@ struct ilo_so_state {
bool enabled;
};
+struct ilo_viewport_state {
+ struct pipe_viewport_state states[ILO_MAX_VIEWPORTS];
+ unsigned count;
+};
+
+struct ilo_scissor_state {
+ struct pipe_scissor_state states[ILO_MAX_VIEWPORTS];
+};
+
#endif /* ILO_GPE_H */