Skip to content

Commit

Permalink
[vulkan] Add FUCHSIA external sem/mem extensions
Browse files Browse the repository at this point in the history
The KHR versions will be renamed once references are removed.

MA-510 #comment
  • Loading branch information
cdotstout committed Mar 26, 2019
1 parent 78de8dc commit 51f23fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vulkan/vulkan_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ VulkanDevice::VulkanDevice(VulkanProcTable& p_vk,
#if OS_FUCHSIA
VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME,
VK_KHR_EXTERNAL_MEMORY_FUCHSIA_EXTENSION_NAME,
VK_FUCHSIA_EXTERNAL_MEMORY_EXTENSION_NAME,
VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME,
VK_KHR_EXTERNAL_SEMAPHORE_FUCHSIA_EXTENSION_NAME,
VK_FUCHSIA_EXTERNAL_SEMAPHORE_EXTENSION_NAME,
#endif
};

Expand Down
2 changes: 2 additions & 0 deletions vulkan/vulkan_proc_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ bool VulkanProcTable::SetupDeviceProcAddresses(
#if OS_FUCHSIA
ACQUIRE_PROC(GetMemoryFuchsiaHandleKHR, handle);
ACQUIRE_PROC(ImportSemaphoreFuchsiaHandleKHR, handle);
ACQUIRE_PROC(GetMemoryZirconHandleFUCHSIA, handle);
ACQUIRE_PROC(ImportSemaphoreZirconHandleFUCHSIA, handle);
#endif // OS_FUCHSIA
device_ = {handle, nullptr};
return true;
Expand Down
2 changes: 2 additions & 0 deletions vulkan/vulkan_proc_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ class VulkanProcTable : public fml::RefCountedThreadSafe<VulkanProcTable> {
#if OS_FUCHSIA
DEFINE_PROC(GetMemoryFuchsiaHandleKHR);
DEFINE_PROC(ImportSemaphoreFuchsiaHandleKHR);
DEFINE_PROC(GetMemoryZirconHandleFUCHSIA);
DEFINE_PROC(ImportSemaphoreZirconHandleFUCHSIA);
#endif // OS_FUCHSIA

#undef DEFINE_PROC
Expand Down

0 comments on commit 51f23fe

Please sign in to comment.