From: Kenneth Graunke Date: Wed, 15 Aug 2018 06:22:12 +0000 (-0700) Subject: iris: assert depth is 1 in resource_copy_region X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e059e48299569ee128990969b1f66636a8dcfb2;p=mesa.git iris: assert depth is 1 in resource_copy_region given the dstz parameter I don't think it does multiple slices.. --- diff --git a/src/gallium/drivers/iris/iris_blit.c b/src/gallium/drivers/iris/iris_blit.c index ef6900ca5ab..5e9a2bcb497 100644 --- a/src/gallium/drivers/iris/iris_blit.c +++ b/src/gallium/drivers/iris/iris_blit.c @@ -214,6 +214,8 @@ iris_resource_copy_region(struct pipe_context *ctx, unsigned dst_layer = dstz; unsigned src_layer = src_box->z; + assert(src_box->depth == 1); + struct iris_batch *batch = &ice->render_batch; iris_batch_maybe_flush(batch, 1500);