mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Make valgrind happy
This commit is contained in:
parent
ac3eb876a8
commit
ac7ca963db
6 changed files with 30 additions and 29 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -976,7 +976,7 @@ void VKContext::WipeQueue() {
|
|||
}
|
||||
|
||||
VkDescriptorSet VKContext::GetOrCreateDescriptorSet(VkBuffer buf) {
|
||||
DescriptorSetKey key;
|
||||
DescriptorSetKey key{};
|
||||
|
||||
FrameData *frame = &frame_[vulkan_->GetCurFrame()];
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<PsmfEntry> EPMap;
|
||||
|
||||
PsmfStreamMap streamMap;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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_;
|
||||
|
|
Loading…
Add table
Reference in a new issue