From 540d53d9b0cd357f70cb0f1aeaec82a604c43547 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 21 Jan 2014 21:59:02 +1300 Subject: [PATCH] i965/blorp: Account for nonzero MinLayer in layered clears. Signed-off-by: Chris Forbes Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke Acked-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index 081f2d95028..851af8cadb8 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp @@ -588,7 +588,7 @@ brw_blorp_clear_color(struct brw_context *brw, struct gl_framebuffer *fb, unsigned num_layers = irb->layer_count; for (unsigned layer = 0; layer < num_layers; layer++) { if (!do_single_blorp_clear(brw, fb, rb, buf, partial_clear, - layer * layer_multiplier)) { + irb->mt_layer + layer * layer_multiplier)) { return false; } } -- 2.30.2