diff options
author | Chia-I Wu <[email protected]> | 2013-06-04 18:37:23 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-07 11:13:16 +0800 |
commit | 3c2fea206fa279f40ecca6a1dba00251857e1029 (patch) | |
tree | e403a021bfda117ffaeb44a33cbe4b2674d28f8c /src/gallium/drivers/ilo/ilo_gpe.h | |
parent | 4006f4ce265199b1ad8dfc9e8ca7fb5176a44527 (diff) |
ilo: construct 3DSTATE_CLIP in create_rasterizer_state()
Add ilo_rasterizer_clip and initialize it in create_rasterizer_state().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_gpe.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h index b31dbf2ee7a..2b8152aa351 100644 --- a/src/gallium/drivers/ilo/ilo_gpe.h +++ b/src/gallium/drivers/ilo/ilo_gpe.h @@ -111,8 +111,17 @@ struct ilo_scissor_state { uint32_t payload[ILO_MAX_VIEWPORTS * 2]; }; +struct ilo_rasterizer_clip { + /* 3DSTATE_CLIP */ + uint32_t payload[3]; + + uint32_t can_enable_guardband; +}; + struct ilo_rasterizer_state { struct pipe_rasterizer_state state; + + struct ilo_rasterizer_clip clip; }; struct ilo_dsa_state { @@ -254,6 +263,19 @@ ilo_gpe_set_scissor_null(const struct ilo_dev_info *dev, struct ilo_scissor_state *scissor); void +ilo_gpe_init_rasterizer_clip(const struct ilo_dev_info *dev, + const struct pipe_rasterizer_state *state, + struct ilo_rasterizer_clip *clip); + +static inline void +ilo_gpe_init_rasterizer(const struct ilo_dev_info *dev, + const struct pipe_rasterizer_state *state, + struct ilo_rasterizer_state *rasterizer) +{ + ilo_gpe_init_rasterizer_clip(dev, state, &rasterizer->clip); +} + +void ilo_gpe_init_dsa(const struct ilo_dev_info *dev, const struct pipe_depth_stencil_alpha_state *state, struct ilo_dsa_state *dsa); |