summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_gpe.h
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <[email protected]>2013-05-31 13:43:11 -0600
committerChia-I Wu <[email protected]>2013-06-07 11:13:15 +0800
commitc6983ea035d6bef345517a13fed6abc1441407cf (patch)
tree09fa6c7f4635e7f6a1098837042824d1b1daea50 /src/gallium/drivers/ilo/ilo_gpe.h
parent70e78211d6c09b3076ac261d2cde9d0037540065 (diff)
ilo: convert generic depth-stencil-alpha pipe state to ilo pipe state
Moving the work to create time reduces the work at emit time. Saves time overall as create work is only done once. Fix compiler warning in gen7_pipeline_sol. [olv: remember pipe_alpha_state instead of pipe_depth_stencil_alpha_state in ilo_dsa_state]
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h
index ae813b1e839..a84140b4876 100644
--- a/src/gallium/drivers/ilo/ilo_gpe.h
+++ b/src/gallium/drivers/ilo/ilo_gpe.h
@@ -113,7 +113,10 @@ struct ilo_rasterizer_state {
};
struct ilo_dsa_state {
- struct pipe_depth_stencil_alpha_state state;
+ /* DEPTH_STENCIL_STATE */
+ uint32_t payload[3];
+
+ struct pipe_alpha_state alpha;
};
struct ilo_blend_cso {
@@ -222,6 +225,11 @@ ilo_gpe_set_scissor_null(const struct ilo_dev_info *dev,
struct ilo_scissor_state *scissor);
void
+ilo_gpe_init_dsa(const struct ilo_dev_info *dev,
+ const struct pipe_depth_stencil_alpha_state *state,
+ struct ilo_dsa_state *dsa);
+
+void
ilo_gpe_init_blend(const struct ilo_dev_info *dev,
const struct pipe_blend_state *state,
struct ilo_blend_state *blend);