From fb2df1b5d55ebb9a2b889ead354934c560e770b7 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 3 Dec 2018 01:03:17 -0800 Subject: [PATCH] iris: Fix clear dimensions Fixes depthstencil-render-miplevels 1024 s=z24_s8 --- src/gallium/drivers/iris/iris_clear.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index be458a8dcc1..9be67608ebe 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -88,7 +88,8 @@ iris_clear(struct pipe_context *ctx, blorp_clear_depth_stencil(&blorp_batch, &z_surf, &stencil_surf, psurf->u.tex.level, psurf->u.tex.first_layer, - num_layers, 0, 0, psurf->width, psurf->height, + num_layers, 0, 0, + cso_fb->width, cso_fb->height, (buffers & PIPE_CLEAR_DEPTH) != 0, depth, (buffers & PIPE_CLEAR_STENCIL) ? 0xff : 0, stencil); @@ -112,7 +113,7 @@ iris_clear(struct pipe_context *ctx, ISL_SWIZZLE_IDENTITY, psurf->u.tex.level, psurf->u.tex.first_layer, psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, - 0, 0, psurf->width, psurf->height, + 0, 0, cso_fb->width, cso_fb->height, *clear_color, color_write_disable); } } -- 2.30.2