From c6983ea035d6bef345517a13fed6abc1441407cf Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Fri, 31 May 2013 13:43:11 -0600 Subject: 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] --- src/gallium/drivers/ilo/ilo_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/ilo/ilo_state.c') diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index 502297e5591..b154ece5a1e 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -332,12 +332,13 @@ static void * ilo_create_depth_stencil_alpha_state(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *state) { + struct ilo_context *ilo = ilo_context(pipe); struct ilo_dsa_state *dsa; dsa = MALLOC_STRUCT(ilo_dsa_state); assert(dsa); - dsa->state = *state; + ilo_gpe_init_dsa(ilo->dev, state, dsa); return dsa; } -- cgit v1.2.3