summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-03 01:03:17 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commitfb2df1b5d55ebb9a2b889ead354934c560e770b7 (patch)
treed61427c389cf73b66441c2977ace0a4ac021c536 /src/gallium
parent2e79e46d231d5b8852bdf519d2bc3138d8e8b08d (diff)
iris: Fix clear dimensions
Fixes depthstencil-render-miplevels 1024 s=z24_s8
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/iris/iris_clear.c5
1 files 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);
}
}