Browse Source

zink: make sure imageExtent.depth is 1 for arrays

Acked-by: Jordan Justen <jordan.l.justen@intel.com>
tags/19.3-branchpoint
Erik Faye-Lund 6 years ago
parent
commit
baf34dbd75
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/gallium/drivers/zink/zink_resource.c

+ 1
- 0
src/gallium/drivers/zink/zink_resource.c View 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;

Loading…
Cancel
Save