mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
Roll Vulkan headers to 1.2.201
Also delete vulkan.hpp that we don't use, and vulkan_fuchsia_extras that have since then been upstreamed. Also updates the fuchsia external import code to use the non-temp extension. Bug: dawn:221 Change-Id: I23e1bfedc5a18731be1e58d0bae1bddf6b0f45fa Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71601 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
75f0f29507
commit
959f1da637
@@ -192,9 +192,4 @@ static constexpr uint64_t VK_NULL_HANDLE = 0;
|
||||
# error "Unsupported platform"
|
||||
#endif
|
||||
|
||||
// Include Fuchsia-specific definitions that are not upstreamed yet.
|
||||
#if defined(DAWN_PLATFORM_FUCHSIA)
|
||||
# include <vulkan/vulkan_fuchsia_extras.h>
|
||||
#endif // defined(DAWN_PLATFORM_FUCHSIA)
|
||||
|
||||
#endif // COMMON_VULKANPLATFORM_H_
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace dawn_native { namespace vulkan { namespace external_memory {
|
||||
VkPhysicalDeviceExternalImageFormatInfo externalFormatInfo;
|
||||
externalFormatInfo.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO_KHR;
|
||||
externalFormatInfo.pNext = nullptr;
|
||||
externalFormatInfo.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_TEMP_ZIRCON_VMO_BIT_FUCHSIA;
|
||||
externalFormatInfo.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_ZIRCON_VMO_BIT_FUCHSIA;
|
||||
|
||||
VkPhysicalDeviceImageFormatInfo2 formatInfo;
|
||||
formatInfo.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR;
|
||||
@@ -112,11 +112,9 @@ namespace dawn_native { namespace vulkan { namespace external_memory {
|
||||
importParams.allocationSize, requirements.size);
|
||||
|
||||
VkImportMemoryZirconHandleInfoFUCHSIA importMemoryHandleInfo;
|
||||
importMemoryHandleInfo.sType =
|
||||
VK_STRUCTURE_TYPE_TEMP_MEMORY_ZIRCON_HANDLE_PROPERTIES_FUCHSIA;
|
||||
importMemoryHandleInfo.sType = VK_STRUCTURE_TYPE_IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA;
|
||||
importMemoryHandleInfo.pNext = nullptr;
|
||||
importMemoryHandleInfo.handleType =
|
||||
VK_EXTERNAL_MEMORY_HANDLE_TYPE_TEMP_ZIRCON_VMO_BIT_FUCHSIA;
|
||||
importMemoryHandleInfo.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_ZIRCON_VMO_BIT_FUCHSIA;
|
||||
importMemoryHandleInfo.handle = handle;
|
||||
|
||||
VkMemoryAllocateInfo allocateInfo;
|
||||
@@ -138,7 +136,7 @@ namespace dawn_native { namespace vulkan { namespace external_memory {
|
||||
externalMemoryImageCreateInfo.sType = VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO;
|
||||
externalMemoryImageCreateInfo.pNext = nullptr;
|
||||
externalMemoryImageCreateInfo.handleTypes =
|
||||
VK_EXTERNAL_MEMORY_HANDLE_TYPE_TEMP_ZIRCON_VMO_BIT_FUCHSIA;
|
||||
VK_EXTERNAL_MEMORY_HANDLE_TYPE_ZIRCON_VMO_BIT_FUCHSIA;
|
||||
|
||||
VkImageCreateInfo createInfo = baseCreateInfo;
|
||||
createInfo.pNext = &externalMemoryImageCreateInfo;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace dawn_native { namespace vulkan { namespace external_semaphore {
|
||||
VkPhysicalDeviceExternalSemaphoreInfoKHR semaphoreInfo;
|
||||
semaphoreInfo.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO_KHR;
|
||||
semaphoreInfo.pNext = nullptr;
|
||||
semaphoreInfo.handleType = VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TEMP_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
semaphoreInfo.handleType = VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
|
||||
VkExternalSemaphorePropertiesKHR semaphoreProperties;
|
||||
semaphoreProperties.sType = VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES_KHR;
|
||||
@@ -73,18 +73,18 @@ namespace dawn_native { namespace vulkan { namespace external_semaphore {
|
||||
mDevice->fn.CreateSemaphore(mDevice->GetVkDevice(), &info, nullptr, &*semaphore),
|
||||
"vkCreateSemaphore"));
|
||||
|
||||
VkImportSemaphoreZirconHandleInfoFUCHSIA importSempahoreHandleInfo;
|
||||
importSempahoreHandleInfo.sType =
|
||||
VK_STRUCTURE_TYPE_TEMP_IMPORT_SEMAPHORE_ZIRCON_HANDLE_INFO_FUCHSIA;
|
||||
importSempahoreHandleInfo.pNext = nullptr;
|
||||
importSempahoreHandleInfo.semaphore = semaphore;
|
||||
importSempahoreHandleInfo.flags = 0;
|
||||
importSempahoreHandleInfo.handleType =
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TEMP_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
importSempahoreHandleInfo.handle = handle;
|
||||
VkImportSemaphoreZirconHandleInfoFUCHSIA importSemaphoreHandleInfo;
|
||||
importSemaphoreHandleInfo.sType =
|
||||
VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_ZIRCON_HANDLE_INFO_FUCHSIA;
|
||||
importSemaphoreHandleInfo.pNext = nullptr;
|
||||
importSemaphoreHandleInfo.semaphore = semaphore;
|
||||
importSemaphoreHandleInfo.flags = 0;
|
||||
importSemaphoreHandleInfo.handleType =
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
importSemaphoreHandleInfo.handle = handle;
|
||||
|
||||
MaybeError status = CheckVkSuccess(mDevice->fn.ImportSemaphoreZirconHandleFUCHSIA(
|
||||
mDevice->GetVkDevice(), &importSempahoreHandleInfo),
|
||||
mDevice->GetVkDevice(), &importSemaphoreHandleInfo),
|
||||
"vkImportSemaphoreZirconHandleFUCHSIA");
|
||||
|
||||
if (status.IsError()) {
|
||||
@@ -100,7 +100,7 @@ namespace dawn_native { namespace vulkan { namespace external_semaphore {
|
||||
exportSemaphoreInfo.sType = VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO_KHR;
|
||||
exportSemaphoreInfo.pNext = nullptr;
|
||||
exportSemaphoreInfo.handleTypes =
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TEMP_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
|
||||
VkSemaphoreCreateInfo semaphoreCreateInfo;
|
||||
semaphoreCreateInfo.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
|
||||
@@ -117,12 +117,11 @@ namespace dawn_native { namespace vulkan { namespace external_semaphore {
|
||||
|
||||
ResultOrError<ExternalSemaphoreHandle> Service::ExportSemaphore(VkSemaphore semaphore) {
|
||||
VkSemaphoreGetZirconHandleInfoFUCHSIA semaphoreGetHandleInfo;
|
||||
semaphoreGetHandleInfo.sType =
|
||||
VK_STRUCTURE_TYPE_TEMP_SEMAPHORE_GET_ZIRCON_HANDLE_INFO_FUCHSIA;
|
||||
semaphoreGetHandleInfo.sType = VK_STRUCTURE_TYPE_SEMAPHORE_GET_ZIRCON_HANDLE_INFO_FUCHSIA;
|
||||
semaphoreGetHandleInfo.pNext = nullptr;
|
||||
semaphoreGetHandleInfo.semaphore = semaphore;
|
||||
semaphoreGetHandleInfo.handleType =
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TEMP_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_ZIRCON_EVENT_BIT_FUCHSIA;
|
||||
|
||||
zx_handle_t handle = ZX_HANDLE_INVALID;
|
||||
DAWN_TRY(CheckVkSuccess(mDevice->fn.GetSemaphoreZirconHandleFUCHSIA(
|
||||
|
||||
Reference in New Issue
Block a user