render/vulkan: Reference count blending buffer

This will be used to share the blending buffer in a later commit.
This commit is contained in:
Kenny Levinsen 2024-07-07 16:06:09 +02:00
parent 827ea06c44
commit 752d9f232c
3 changed files with 144 additions and 83 deletions

View file

@ -267,7 +267,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,