summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_state.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-05-31 16:11:38 +0800
committerChia-I Wu <[email protected]>2013-06-07 11:13:15 +0800
commiteea1be2072a1c980871d80df71d3e39a67fdfb0a (patch)
tree8ad3d587c43ae0c58dc57b95901ef96b48915041 /src/gallium/drivers/ilo/ilo_state.c
parentb3c9e2161f22c3c6b8b2fc83ea4bc7ea883329d7 (diff)
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().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_state.c3
1 files changed, 2 insertions, 1 deletions
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;
}