From: Erik Faye-Lund Date: Fri, 12 Jul 2019 09:59:12 +0000 (+0200) Subject: zink: make sure imageExtent.depth is 1 for arrays X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=baf34dbd75281a6f2ea4d308685324b4132f9059;p=mesa.git zink: make sure imageExtent.depth is 1 for arrays Acked-by: Jordan Justen --- diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 8ce90bb50c4..029e5e91942 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -365,6 +365,7 @@ zink_transfer_copy_bufimage(struct zink_context *ctx, if (res->base.array_size > 1) { copyRegion.imageSubresource.baseArrayLayer = trans->base.box.z; copyRegion.imageSubresource.layerCount = trans->base.box.depth; + copyRegion.imageExtent.depth = 1; } else { copyRegion.imageOffset.z = trans->base.box.z; copyRegion.imageExtent.depth = trans->base.box.depth;