render/vulkan: fix validation error with vkCmdBlitImage

Specfically, VUID-vkCmdBlitImage-srcImage-00247.
This commit is contained in:
Manuel Stoeckl 2023-09-10 15:28:20 -04:00
parent 65bbbbbf0c
commit 5aea90264f
1 changed files with 2 additions and 0 deletions

View File

@ -1818,10 +1818,12 @@ static bool vulkan_read_pixels(struct wlr_renderer *wlr_renderer,
.srcOffsets[0] = {
.x = src_x,
.y = src_y,
.z = 0,
},
.srcOffsets[1] = {
.x = src_x + width,
.y = src_y + height,
.z = 1,
},
.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
.dstSubresource.layerCount = 1,