summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_blit.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-08-14 23:22:12 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commit0e059e48299569ee128990969b1f66636a8dcfb2 (patch)
tree87245f32d02e6bc95d866af27c3f410696e4cf15 /src/gallium/drivers/iris/iris_blit.c
parent03933a2d1b5ca05dbde5eb688da9c9fb177ec5b8 (diff)
iris: assert depth is 1 in resource_copy_region
given the dstz parameter I don't think it does multiple slices..
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);