From 0e059e48299569ee128990969b1f66636a8dcfb2 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 14 Aug 2018 23:22:12 -0700 Subject: [PATCH] iris: assert depth is 1 in resource_copy_region given the dstz parameter I don't think it does multiple slices.. --- src/gallium/drivers/iris/iris_blit.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2