From 3036d92b28174c12b2ef761e7fe8ac417c99c1d9 Mon Sep 17 00:00:00 2001 From: Juan Cabral Date: Fri, 7 Feb 2025 10:16:14 -0800 Subject: [PATCH] VDR: Initialize multiview flag Missing variable initialization was causing multiview structure to be added when creating render passes even when there was not multiview in play. --- framework/decode/vulkan_object_info.h | 2 +- framework/decode/vulkan_replay_consumer_base.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/decode/vulkan_object_info.h b/framework/decode/vulkan_object_info.h index 73f41fe213..93f9b75329 100644 --- a/framework/decode/vulkan_object_info.h +++ b/framework/decode/vulkan_object_info.h @@ -656,7 +656,7 @@ struct VulkanRenderPassInfo : public VulkanObjectInfo std::vector dependencies; // Multiview info - bool has_multiview; + bool has_multiview{ false }; struct { diff --git a/framework/decode/vulkan_replay_consumer_base.cpp b/framework/decode/vulkan_replay_consumer_base.cpp index f2d9940dc5..64e2507b34 100644 --- a/framework/decode/vulkan_replay_consumer_base.cpp +++ b/framework/decode/vulkan_replay_consumer_base.cpp @@ -5393,6 +5393,7 @@ VkResult VulkanReplayConsumerBase::OverrideCreateRenderPass( } // Copy multiview information + render_pass_info->has_multiview = false; const VkBaseInStructure* current = reinterpret_cast(create_info->pNext); while (current != nullptr) {