From 5aea90264f3524d0de70c513f84c12b8e54dca68 Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Sun, 10 Sep 2023 15:28:20 -0400 Subject: render/vulkan: fix validation error with vkCmdBlitImage Specfically, VUID-vkCmdBlitImage-srcImage-00247. --- render/vulkan/renderer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render') diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 736c9e96..d1c3a965 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -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, -- cgit v1.2.3