Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions framework/decode/vulkan_replay_consumer_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9197,15 +9197,24 @@ VulkanReplayConsumerBase::OverrideQueuePresentKHR(PFN_vkQueuePresentKHR
}
}
}
const auto* present_fence_info =
GetPNextMetaStruct<Decoded_VkSwapchainPresentFenceInfoEXT>(pPresentInfo->GetMetaStructPointer()->pNext);
if (present_fence_info != nullptr)
}

const auto* present_fence_info =
GetPNextMetaStruct<Decoded_VkSwapchainPresentFenceInfoEXT>(pPresentInfo->GetMetaStructPointer()->pNext);
if ((present_fence_info != nullptr) && !present_fence_info->pFences.IsNull() &&
(present_fence_info->pFences.GetPointer() != nullptr) && (pPresentInfo->GetPointer() != nullptr))
{
const format::HandleId* fences = present_fence_info->pFences.GetPointer();
const size_t fence_count = present_fence_info->pFences.GetLength();
const size_t count = std::min(static_cast<size_t>(pPresentInfo->GetPointer()->swapchainCount), fence_count);

for (size_t i = 0; i < count; ++i)
{
for (uint32_t i = 0; i < pPresentInfo->GetPointer()->swapchainCount; ++i)
format::HandleId fence = fences[i];
if (fence != format::kNullHandleId)
{
format::HandleId fence = present_fence_info->pFences.GetPointer()[i];
VulkanFenceInfo* fence_info = object_info_table_->GetVkFenceInfo(fence);
if (fence_info)
if ((fence_info != nullptr) && (fence_info->handle != VK_NULL_HANDLE))
{
fence_info->shadow_signaled = true;
shadow_fences_.insert(fence_info->handle);
Expand Down
Loading