diff --git a/Common/GPU/Vulkan/VulkanContext.cpp b/Common/GPU/Vulkan/VulkanContext.cpp index 0d29b518df..3b3b5124b9 100644 --- a/Common/GPU/Vulkan/VulkanContext.cpp +++ b/Common/GPU/Vulkan/VulkanContext.cpp @@ -1266,10 +1266,10 @@ bool GLSLtoSPV(const VkShaderStageFlagBits shader_type, const char *sourceCode, glslang::TProgram program; const char *shaderStrings[1]; - TBuiltInResource Resources; + TBuiltInResource Resources{}; init_resources(Resources); - int defaultVersion; + int defaultVersion = 0; EShMessages messages; EProfile profile; diff --git a/Common/GPU/Vulkan/thin3d_vulkan.cpp b/Common/GPU/Vulkan/thin3d_vulkan.cpp index 6a5af31453..fe508e59a3 100644 --- a/Common/GPU/Vulkan/thin3d_vulkan.cpp +++ b/Common/GPU/Vulkan/thin3d_vulkan.cpp @@ -976,7 +976,7 @@ void VKContext::WipeQueue() { } VkDescriptorSet VKContext::GetOrCreateDescriptorSet(VkBuffer buf) { - DescriptorSetKey key; + DescriptorSetKey key{}; FrameData *frame = &frame_[vulkan_->GetCurFrame()]; diff --git a/Core/ELF/ElfReader.cpp b/Core/ELF/ElfReader.cpp index abfd881e87..980e427e83 100644 --- a/Core/ELF/ElfReader.cpp +++ b/Core/ELF/ElfReader.cpp @@ -583,7 +583,8 @@ int ElfReader::LoadInto(u32 loadAddress, bool fromTop) { if (!(sections[sectionToModify].sh_flags & SHF_ALLOC)) { - ERROR_LOG_REPORT(LOADER, "Trying to relocate non-loaded section %s, ignoring", GetSectionName(sectionToModify)); + // Generally stuff like debug info. We don't need it. + INFO_LOG(LOADER, "Skipping relocation of non-loaded section %s", GetSectionName(sectionToModify)); continue; } } diff --git a/Core/HLE/scePsmf.cpp b/Core/HLE/scePsmf.cpp index b2aefa9a1a..393469f029 100644 --- a/Core/HLE/scePsmf.cpp +++ b/Core/HLE/scePsmf.cpp @@ -175,35 +175,35 @@ public: int FindEPWithTimestamp(int pts) const; - u32 magic; - u32 version; - u32 streamOffset; - u32 streamSize; - u32 headerSize; - u32 headerOffset; - u32 streamType; - u32 streamChannel; + u32 magic = 0; + u32 version = 0; + u32 streamOffset = 0; + u32 streamSize = 0; + u32 headerSize = 0; + u32 headerOffset = 0; + u32 streamType = 0; + u32 streamChannel = 0; // 0x50 - u32 streamDataTotalSize; - u32 presentationStartTime; - u32 presentationEndTime; - u32 streamDataNextBlockSize; - u32 streamDataNextInnerBlockSize; + u32 streamDataTotalSize = 0; + u32 presentationStartTime = 0; + u32 presentationEndTime = 0; + u32 streamDataNextBlockSize = 0; + u32 streamDataNextInnerBlockSize = 0; - int numStreams; - int currentStreamNum; - int currentStreamType; - int currentStreamChannel; + int numStreams = 0; + int currentStreamNum = 0; + int currentStreamType = 0; + int currentStreamChannel = 0; // parameters gotten from streams // I guess this is the seek information? - u32 EPMapOffset; - u32 EPMapEntriesNum; + u32 EPMapOffset = 0; + u32 EPMapEntriesNum = 0; // These shouldn't be here, just here for convenience with old states. - int videoWidth; - int videoHeight; - int audioChannels; - int audioFrequency; + int videoWidth = 0; + int videoHeight = 0; + int audioChannels = 0; + int audioFrequency = 0; std::vector EPMap; PsmfStreamMap streamMap; diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 205dcbc602..73718e72b7 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -152,7 +152,7 @@ static int TexLog2(float delta) { } SamplerCacheKey TextureCacheCommon::GetSamplingParams(int maxLevel, const TexCacheEntry *entry) { - SamplerCacheKey key; + SamplerCacheKey key{}; int minFilt = gstate.texfilter & 0x7; key.minFilt = minFilt & 1; diff --git a/GPU/Vulkan/DrawEngineVulkan.cpp b/GPU/Vulkan/DrawEngineVulkan.cpp index f992df082f..d086b60921 100644 --- a/GPU/Vulkan/DrawEngineVulkan.cpp +++ b/GPU/Vulkan/DrawEngineVulkan.cpp @@ -381,7 +381,7 @@ VkDescriptorSet DrawEngineVulkan::GetOrCreateDescriptorSet(VkImageView imageView _dbg_assert_(light != VK_NULL_HANDLE); _dbg_assert_(bone != VK_NULL_HANDLE); - DescriptorSetKey key; + DescriptorSetKey key{}; key.imageView_ = imageView; key.sampler_ = sampler; key.secondaryImageView_ = boundSecondary_;