diff options
author | Marek Olšák <[email protected]> | 2013-05-29 15:35:38 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-06-13 03:54:13 +0200 |
commit | 17350ea979b883662573dac136cd9efb49938210 (patch) | |
tree | 3aa0e357a580e16e188c53551893eb29b0a3ab34 /src/gallium/drivers/radeonsi | |
parent | de1c38299ceb3160ed0c163d4dd8944ec6589a7f (diff) |
gallium/u_blitter: make clearing independent of the number of bound colorbuffers
We can use the fragment shader TGSI property WRITES_ALL_CBUFS.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/r600_blit.c b/src/gallium/drivers/radeonsi/r600_blit.c index f11f110d760..eee6cd10a9e 100644 --- a/src/gallium/drivers/radeonsi/r600_blit.c +++ b/src/gallium/drivers/radeonsi/r600_blit.c @@ -244,7 +244,7 @@ static void r600_clear(struct pipe_context *ctx, unsigned buffers, r600_blitter_begin(ctx, R600_CLEAR); util_blitter_clear(rctx->blitter, fb->width, fb->height, - fb->nr_cbufs, buffers, fb->nr_cbufs ? fb->cbufs[0]->format : PIPE_FORMAT_NONE, + buffers, fb->nr_cbufs ? fb->cbufs[0]->format : PIPE_FORMAT_NONE, color, depth, stencil); r600_blitter_end(ctx); } |