diff options
author | Chia-I Wu <[email protected]> | 2013-05-29 14:42:13 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-07 11:13:14 +0800 |
commit | 130364ad1d5010e9320aaa312309f83746d751d3 (patch) | |
tree | 323c2d7a15292c0fdb17c500b9616751d35ea306 /src/gallium/drivers/ilo/ilo_gpe.h | |
parent | 3bc8289f49f6f1a7256c7d199d09d3753c10af3a (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.h | 10 |
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 */ |