Merge branch 'vk-shared-blend' into 'master'

Draft: render/vulkan: Cache blending buffer on swapchain

See merge request wlroots/wlroots!4740
This commit is contained in:
Kenny Levinsen 2024-10-28 00:28:25 +00:00
commit 2ba9e6424a
5 changed files with 252 additions and 83 deletions

View file

@ -274,7 +274,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) {
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
.image = render_buffer->plain.blend_image,
.image = render_buffer->plain.blend_buffer->blend_image,
.oldLayout = blend_src_layout,
.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
.srcAccessMask = VK_ACCESS_SHADER_READ_BIT,