diff options
author | Chia-I Wu <[email protected]> | 2013-05-29 15:06:48 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-07 11:13:15 +0800 |
commit | 94212915ee8f7bf98c8adfe248a05a382d00c191 (patch) | |
tree | 0a446299c9c70f183018996cc6b0ce836515f9f6 /src/gallium/drivers/ilo/ilo_blit.c | |
parent | 29b938d9f43a4bc355ee05cad2c9796ea7ee93dd (diff) |
ilo: switch to ilo states for CC stage
Define and use
struct ilo_dsa_state;
struct ilo_blend_state;
struct ilo_fb_state;
in ilo_context.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blit.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_blit.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blit.c b/src/gallium/drivers/ilo/ilo_blit.c index 8b8d5df3040..29097e9cf59 100644 --- a/src/gallium/drivers/ilo/ilo_blit.c +++ b/src/gallium/drivers/ilo/ilo_blit.c @@ -549,9 +549,8 @@ ilo_blitter_begin(struct ilo_context *ilo, enum ilo_blitter_op op) util_blitter_save_so_targets(ilo->blitter, ilo->so.count, ilo->so.states); util_blitter_save_fragment_shader(ilo->blitter, ilo->fs); - util_blitter_save_depth_stencil_alpha(ilo->blitter, - ilo->depth_stencil_alpha); - util_blitter_save_blend(ilo->blitter, ilo->blend); + util_blitter_save_depth_stencil_alpha(ilo->blitter, (void *) ilo->dsa); + util_blitter_save_blend(ilo->blitter, (void *) ilo->blend); /* undocumented? */ util_blitter_save_viewport(ilo->blitter, &ilo->viewport.states[0]); @@ -563,11 +562,11 @@ ilo_blitter_begin(struct ilo_context *ilo, enum ilo_blitter_op op) util_blitter_save_rasterizer(ilo->blitter, (void *) ilo->rasterizer); break; case ILO_BLITTER_CLEAR_SURFACE: - util_blitter_save_framebuffer(ilo->blitter, &ilo->framebuffer); + util_blitter_save_framebuffer(ilo->blitter, &ilo->fb.state); break; case ILO_BLITTER_BLIT: util_blitter_save_rasterizer(ilo->blitter, (void *) ilo->rasterizer); - util_blitter_save_framebuffer(ilo->blitter, &ilo->framebuffer); + util_blitter_save_framebuffer(ilo->blitter, &ilo->fb.state); util_blitter_save_fragment_sampler_states(ilo->blitter, ilo->samplers[PIPE_SHADER_FRAGMENT].num_samplers, @@ -602,10 +601,10 @@ ilo_clear(struct pipe_context *pipe, ilo_blitter_begin(ilo, ILO_BLITTER_CLEAR); util_blitter_clear(ilo->blitter, - ilo->framebuffer.width, ilo->framebuffer.height, - ilo->framebuffer.nr_cbufs, buffers, - (ilo->framebuffer.nr_cbufs) ? ilo->framebuffer.cbufs[0]->format : - PIPE_FORMAT_NONE, + ilo->fb.state.width, ilo->fb.state.height, + ilo->fb.state.nr_cbufs, buffers, + (ilo->fb.state.nr_cbufs) ? ilo->fb.state.cbufs[0]->format : + PIPE_FORMAT_NONE, color, depth, stencil); ilo_blitter_end(ilo); |