v3dv: fix multi-layered buffer to image copies on the blit path

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7247>
This commit is contained in:
Iago Toral Quiroga 2020-10-09 14:57:57 +02:00
parent 0a4fc19605
commit 2118c9b562
1 changed files with 2 additions and 2 deletions

View File

@ -2674,8 +2674,8 @@ copy_buffer_to_image_blit(struct v3dv_cmd_buffer *cmd_buffer,
.dstSubresource = {
.aspectMask = aspect,
.mipLevel = region->imageSubresource.mipLevel,
.baseArrayLayer = region->imageSubresource.baseArrayLayer,
.layerCount = region->imageSubresource.layerCount,
.baseArrayLayer = region->imageSubresource.baseArrayLayer + i,
.layerCount = 1,
},
.dstOffsets = {
{