aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-09-10 15:28:20 -0400
committerManuel Stoeckl <code@mstoeckl.com>2023-09-10 15:28:57 -0400
commit5aea90264f3524d0de70c513f84c12b8e54dca68 (patch)
tree75fff60ac52cdcc495fe5241f4262b72ddff586d /render
parent65bbbbbf0c3d6844cee3c4e294d0ba07e1f82211 (diff)
render/vulkan: fix validation error with vkCmdBlitImage
Specfically, VUID-vkCmdBlitImage-srcImage-00247.
Diffstat (limited to 'render')
-rw-r--r--render/vulkan/renderer.c2
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,