iris: assert depth is 1 in resource_copy_region

given the dstz parameter I don't think it does multiple slices..
This commit is contained in:
Kenneth Graunke
2018-08-14 23:22:12 -07:00
parent 03933a2d1b
commit 0e059e4829

View File

@@ -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);