From bcd9869ccb2757b30e973cf6bda6aa774b86bc20 Mon Sep 17 00:00:00 2001 From: ZhangLiang Date: Mon, 2 Sep 2024 13:00:05 +0000 Subject: [PATCH] deal code difference Signed-off-by: ZhangLiang Change-Id: I9eef51788c70b3f17d1060b197e4951c4c7924fc --- BUILD.gn | 1 - loader/wsi.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 7b2b71f2..77cfe271 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -96,7 +96,6 @@ ohos_shared_library("vulkan_loader") { ] public_external_deps = [ "vulkan-headers:vulkan_headers" ] - innerapi_tags = [ "platformsdk" ] output_name = "vulkan" output_extension = "so" diff --git a/loader/wsi.c b/loader/wsi.c index 56f9e6e1..48602bba 100644 --- a/loader/wsi.c +++ b/loader/wsi.c @@ -1266,9 +1266,9 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateSurfaceOHOS(VkInstance instance, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { // First, check to ensure the appropriate extension was enabled: struct loader_instance *loader_inst = loader_get_instance(instance); - if (!loader_inst->wsi_ohos_surface_enabled) { + if (!loader_inst->wsi_display_enabled) { loader_log(loader_inst, VULKAN_LOADER_ERROR_BIT, 0, - "VK_OHOS_surface extension not enabled. vkCreateSurfaceOHOS not executed!\n"); + "VK_KHR_display extension not enabled. vkCreateSurfaceOHOS not executed!\n"); return VK_ERROR_EXTENSION_NOT_PRESENT; } -- Gitee