Skip to content

Commit

Permalink
Warning fix, some paranoid zero init
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Feb 12, 2024
1 parent c50399f commit 9322b4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions GPU/Vulkan/DrawEngineVulkan.h
Expand Up @@ -191,8 +191,8 @@ class DrawEngineVulkan : public DrawEngineCommon {
Draw::DrawContext *draw_;

// We use a shared descriptor set layouts for all PSP draws.
VKRPipelineLayout *pipelineLayout_;
VulkanPipeline *lastPipeline_;
VKRPipelineLayout *pipelineLayout_ = nullptr;
VulkanPipeline *lastPipeline_ = nullptr;
VkDescriptorSet lastDs_ = VK_NULL_HANDLE;

// Secondary texture for shader blending
Expand Down Expand Up @@ -228,11 +228,13 @@ class DrawEngineVulkan : public DrawEngineCommon {
FramebufferManagerVulkan *framebufferManager_ = nullptr;

// State cache
uint64_t dirtyUniforms_;
uint32_t baseUBOOffset;
uint32_t lightUBOOffset;
uint32_t boneUBOOffset;
VkBuffer baseBuf, lightBuf, boneBuf;
uint64_t dirtyUniforms_ = 0;
uint32_t baseUBOOffset = 0;
uint32_t lightUBOOffset = 0;
uint32_t boneUBOOffset = 0;
VkBuffer baseBuf = VK_NULL_HANDLE;
VkBuffer lightBuf = VK_NULL_HANDLE;
VkBuffer boneBuf = VK_NULL_HANDLE;
VkImageView imageView = VK_NULL_HANDLE;
VkSampler sampler = VK_NULL_HANDLE;

Expand Down
2 changes: 1 addition & 1 deletion UI/GameInfoCache.cpp
Expand Up @@ -869,7 +869,7 @@ void GameInfoCache::PurgeType(IdentifiedFileType fileType) {
}
// TODO: Find a better way to wait here.
if (info->pendingFlags != (GameInfoFlags)0) {
INFO_LOG(LOADER, "%s: pending flags %08x, retrying", info->GetTitle().c_str(), info->pendingFlags);
INFO_LOG(LOADER, "%s: pending flags %08x, retrying", info->GetTitle().c_str(), (int)info->pendingFlags);
retry = true;
break;
}
Expand Down

0 comments on commit 9322b4c

Please sign in to comment.