summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_blit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/iris/iris_blit.c')
-rw-r--r--src/gallium/drivers/iris/iris_blit.c2
1 files changed, 2 insertions, 0 deletions
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);