From baf34dbd75281a6f2ea4d308685324b4132f9059 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 12 Jul 2019 11:59:12 +0200 Subject: [PATCH] zink: make sure imageExtent.depth is 1 for arrays Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_resource.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2