From: Marek Olšák Date: Wed, 20 Aug 2014 17:17:09 +0000 (+0200) Subject: r600g: fix layered clear X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d159c5e3e0bdfe3c19a2da7526133fdd94ffee79;p=mesa.git r600g: fix layered clear Cc: mesa-stable@lists.freedesktop.org Acked-by: Michel Dänzer --- diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index 0f438399432..f766e37f2b2 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++ b/src/gallium/drivers/r600/r600_blit.c @@ -441,7 +441,8 @@ 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, 1, + util_blitter_clear(rctx->blitter, fb->width, fb->height, + util_framebuffer_get_num_layers(fb), buffers, color, depth, stencil); r600_blitter_end(ctx);