From 7d3e4a25acf5aaa76d43b631526851912768f0cb Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 5 Sep 2025 14:32:41 +0200 Subject: [PATCH] Fix: Vulkan: Unused attachments Recent changed introduced a VVL error on devices that don't support `VK_EXT_dynamic_rendering_unused_attachments`. These include Qualcomm GPUs. PR introduced regression: !145120 Pull Request: https://projects.blender.org/blender/blender/pulls/145793 --- source/blender/gpu/vulkan/vk_framebuffer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/gpu/vulkan/vk_framebuffer.cc b/source/blender/gpu/vulkan/vk_framebuffer.cc index 776fca22f4b..13239cc2eda 100644 --- a/source/blender/gpu/vulkan/vk_framebuffer.cc +++ b/source/blender/gpu/vulkan/vk_framebuffer.cc @@ -652,9 +652,10 @@ void VKFrameBuffer::rendering_ensure_dynamic_rendering(VKContext &context, VK_FORMAT_UNDEFINED : vk_format); } + color_attachment_size = max_filled_slot_index + 1; + begin_rendering.node_data.vk_rendering_info.colorAttachmentCount = color_attachment_size; begin_rendering.node_data.vk_rendering_info.pColorAttachments = begin_rendering.node_data.color_attachments; - color_attachment_size = max_filled_slot_index + 1; for (int depth_attachment_index : IndexRange(GPU_FB_DEPTH_ATTACHMENT, 2)) { const GPUAttachment &attachment = attachments_[depth_attachment_index];