diff options
author | Marek Olšák <[email protected]> | 2017-11-25 21:08:20 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-29 18:21:30 +0100 |
commit | 980bf9a27e83879982af6b1cdc87ed4da4f54807 (patch) | |
tree | 806a68b2b4e7361a4d59f34700c1ad7bd71431f5 /src/gallium/drivers/radeonsi/si_clear.c | |
parent | 092756f23fee2ea2a98a230d020132a45a6e1e94 (diff) |
radeonsi: clean up si_do_fast_color_clear parameters
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_clear.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_clear.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index d99947f7aad..29e63c7e82b 100644 --- a/src/gallium/drivers/radeonsi/si_clear.c +++ b/src/gallium/drivers/radeonsi/si_clear.c @@ -342,11 +342,10 @@ static void si_set_optimal_micro_tile_mode(struct si_screen *sscreen, } static void si_do_fast_color_clear(struct si_context *sctx, - struct pipe_framebuffer_state *fb, - struct r600_atom *fb_state, - unsigned *buffers, ubyte *dirty_cbufs, + unsigned *buffers, const union pipe_color_union *color) { + struct pipe_framebuffer_state *fb = &sctx->framebuffer.state; int i; /* This function is broken in BE, so just disable this path for now */ @@ -495,9 +494,8 @@ static void si_do_fast_color_clear(struct si_context *sctx, si_set_clear_color(tex, fb->cbufs[i]->format, color); - if (dirty_cbufs) - *dirty_cbufs |= 1 << i; - sctx->b.set_atom_dirty(&sctx->b, fb_state, true); + sctx->framebuffer.dirty_cbufs |= 1 << i; + si_mark_atom_dirty(sctx, &sctx->framebuffer.atom); *buffers &= ~clear_bit; } } @@ -513,10 +511,7 @@ static void si_clear(struct pipe_context *ctx, unsigned buffers, zsbuf ? (struct r600_texture*)zsbuf->texture : NULL; if (buffers & PIPE_CLEAR_COLOR) { - si_do_fast_color_clear(sctx, fb, - &sctx->framebuffer.atom, &buffers, - &sctx->framebuffer.dirty_cbufs, - color); + si_do_fast_color_clear(sctx, &buffers, color); if (!buffers) return; /* all buffers have been fast cleared */ } |