diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2023-09-10 15:28:20 -0400 |
---|---|---|
committer | Manuel Stoeckl <code@mstoeckl.com> | 2023-09-10 15:28:57 -0400 |
commit | 5aea90264f3524d0de70c513f84c12b8e54dca68 (patch) | |
tree | 75fff60ac52cdcc495fe5241f4262b72ddff586d | |
parent | 65bbbbbf0c3d6844cee3c4e294d0ba07e1f82211 (diff) |
render/vulkan: fix validation error with vkCmdBlitImage
Specfically, VUID-vkCmdBlitImage-srcImage-00247.
-rw-r--r-- | render/vulkan/renderer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |