Commit 49722c7c authored by Erik Faye-Lund 's avatar Erik Faye-Lund

zink: make sure imageExtent.depth is 1 for arrays

parent 46bbadf1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment