zink: make sure imageExtent.depth is 1 for arrays
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 12 Jul 2019 09:59:12 +0000 (11:59 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:46 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_resource.c

index 8ce90bb50c42abda4c660cf7927e996aa48d34bb..029e5e91942a73c2c4e411aaf3dc7b655a6c0bf7 100644 (file)
@@ -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;