Skip to content

Commit

Permalink
layers: Fix semaphore handling for Fuchsia
Browse files Browse the repository at this point in the history
This applies changes in #6910 to Fuchsia-specific code for
VkSemaphoreGetZirconHandleInfoFUCHSIA.

Test: Vulkan-ValidationLayer v1.4.304.1 with this patch builds on
      Fuchsia tip-of-tree.
Change-Id: Iebb01760bd5bda62e35b01093f613b8f5aed1195
  • Loading branch information
gnoliyil authored and spencer-lunarg committed Feb 15, 2025
1 parent a205168 commit eeb5513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layers/core_checks/cc_external_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ void CoreChecks::PostCallRecordGetSemaphoreZirconHandleFUCHSIA(VkDevice device,
const VkSemaphoreGetZirconHandleInfoFUCHSIA *pGetZirconHandleInfo,
zx_handle_t *pZirconHandle, const RecordObject &record_obj) {
if (VK_SUCCESS != record_obj.result) return;
RecordGetExternalSemaphoreState(pGetZirconHandleInfo->semaphore, pGetZirconHandleInfo->handleType);
auto semaphore_state = Get<vvl::Semaphore>(pGetZirconHandleInfo->semaphore);
RecordGetExternalSemaphoreState(*semaphore_state, pGetZirconHandleInfo->handleType);
}
#endif

Expand Down

0 comments on commit eeb5513

Please sign in to comment.