summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-08-20 19:17:09 +0200
committerEmil Velikov <[email protected]>2014-09-05 14:04:46 +0100
commit58be4ab74112de14dc1c8ddbf042e5e363bc2afa (patch)
tree0084f128c751fc86a7f003ca73bf6295aa84e3ac
parent447785af9d1250b6a23f79db3fae4596700e6e65 (diff)
r600g: fix layered clear
Cc: [email protected] Acked-by: Michel Dänzer <[email protected]> (cherry picked from commit d159c5e3e0bdfe3c19a2da7526133fdd94ffee79)
-rw-r--r--src/gallium/drivers/r600/r600_blit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index a3cfdae6b73..4b9c30096b1 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -440,7 +440,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);