mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render/vulkan: fix validation error with vkCmdBlitImage
Specfically, VUID-vkCmdBlitImage-srcImage-00247.
This commit is contained in:
parent
65bbbbbf0c
commit
5aea90264f
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue