From: Kenneth Graunke Date: Mon, 25 Jun 2018 20:27:14 +0000 (-0700) Subject: iris: clear fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cf04c6ded7c8a628fdebf73c6ecf49fcb1f3526;p=mesa.git iris: clear fix --- diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index 793777dbee3..08453789078 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -68,8 +68,10 @@ iris_clear(struct pipe_context *ctx, ISL_AUX_USAGE_NONE, true); blorp_clear(&blorp_batch, &surf, isurf->view.format, - ISL_SWIZZLE_IDENTITY, 0, 0, cso_fb->layers, - 0, 0, cso_fb->width, cso_fb->height, + 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, *clear_color, color_write_disable); } }