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

View file

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