From 17350ea979b883662573dac136cd9efb49938210 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 29 May 2013 15:35:38 +0200 Subject: 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 --- src/gallium/drivers/r600/r600_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/r600/r600_blit.c') diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index 058bf819b8a..eded3555b4f 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++ b/src/gallium/drivers/r600/r600_blit.c @@ -443,7 +443,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); -- cgit v1.2.3