iris: Fix clear dimensions
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Dec 2018 09:03:17 +0000 (01:03 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
Fixes depthstencil-render-miplevels 1024 s=z24_s8

src/gallium/drivers/iris/iris_clear.c

index be458a8dcc1e0842662d1bf21a5e73815f6888ea..9be67608ebe56a81d72e8a9019cba97cd86396a9 100644 (file)
@@ -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);
          }
       }