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
This commit is contained in:
Jeroen Bakker
2025-09-05 14:32:41 +02:00
parent 7755411c90
commit 7d3e4a25ac

View File

@@ -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];