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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user