From eea1be2072a1c980871d80df71d3e39a67fdfb0a Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 31 May 2013 16:11:38 +0800 Subject: ilo: introduce blend CSO Introduce ilo_blend_cso and initialize it in create_blend_state(). This saves us from having to construct hardware blend states in draw_vbo(). --- 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 ab2a4e9ae10..c032e177673 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -156,12 +156,13 @@ static void * ilo_create_blend_state(struct pipe_context *pipe, const struct pipe_blend_state *state) { + struct ilo_context *ilo = ilo_context(pipe); struct ilo_blend_state *blend; blend = MALLOC_STRUCT(ilo_blend_state); assert(blend); - blend->state = *state; + ilo_gpe_init_blend(ilo->dev, state, blend); return blend; } -- cgit v1.2.3