Skip to content

Commit 22c0f13

Browse files
committed
build: Update to header 1.4.318
1 parent 63b05d2 commit 22c0f13

File tree

7 files changed

+94
-4
lines changed

7 files changed

+94
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# ~~~
1919
cmake_minimum_required(VERSION 3.22.1)
2020

21-
project(VULKAN_LOADER VERSION 1.4.317 LANGUAGES C)
21+
project(VULKAN_LOADER VERSION 1.4.318 LANGUAGES C)
2222

2323
option(CODE_COVERAGE "Enable Code Coverage" OFF)
2424
if (CODE_COVERAGE)

loader/generated/vk_layer_dispatch_table.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ typedef struct VkLayerInstanceDispatchTable_ {
298298
// ---- VK_NV_cooperative_vector extension commands
299299
PFN_vkGetPhysicalDeviceCooperativeVectorPropertiesNV GetPhysicalDeviceCooperativeVectorPropertiesNV;
300300

301+
// ---- VK_OHOS_surface extension commands
302+
#if defined(VK_USE_PLATFORM_OHOS)
303+
PFN_vkCreateSurfaceOHOS CreateSurfaceOHOS;
304+
#endif // VK_USE_PLATFORM_OHOS
305+
301306
// ---- VK_NV_cooperative_matrix2 extension commands
302307
PFN_vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV;
303308
} VkLayerInstanceDispatchTable;

loader/generated/vk_loader_extensions.c

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_instance* inst,
319319
// ---- VK_NV_cooperative_vector extension commands
320320
LOOKUP_GIPA(GetPhysicalDeviceCooperativeVectorPropertiesNV);
321321

322+
// ---- VK_OHOS_surface extension commands
323+
#if defined(VK_USE_PLATFORM_OHOS)
324+
LOOKUP_GIPA(CreateSurfaceOHOS);
325+
#endif // VK_USE_PLATFORM_OHOS
326+
322327
// ---- VK_NV_cooperative_matrix2 extension commands
323328
LOOKUP_GIPA(GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV);
324329

@@ -1585,6 +1590,11 @@ VKAPI_ATTR void VKAPI_CALL loader_init_instance_extension_dispatch_table(VkLayer
15851590
// ---- VK_NV_cooperative_vector extension commands
15861591
table->GetPhysicalDeviceCooperativeVectorPropertiesNV = (PFN_vkGetPhysicalDeviceCooperativeVectorPropertiesNV)gpa(inst, "vkGetPhysicalDeviceCooperativeVectorPropertiesNV");
15871592

1593+
// ---- VK_OHOS_surface extension commands
1594+
#if defined(VK_USE_PLATFORM_OHOS)
1595+
table->CreateSurfaceOHOS = (PFN_vkCreateSurfaceOHOS)gpa(inst, "vkCreateSurfaceOHOS");
1596+
#endif // VK_USE_PLATFORM_OHOS
1597+
15881598
// ---- VK_NV_cooperative_matrix2 extension commands
15891599
table->GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV = (PFN_vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV)gpa(inst, "vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV");
15901600
}
@@ -3529,6 +3539,11 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
35293539
// ---- VK_NV_cooperative_vector extension commands
35303540
if (!strcmp(name, "GetPhysicalDeviceCooperativeVectorPropertiesNV")) return (void *)table->GetPhysicalDeviceCooperativeVectorPropertiesNV;
35313541

3542+
// ---- VK_OHOS_surface extension commands
3543+
#if defined(VK_USE_PLATFORM_OHOS)
3544+
if (!strcmp(name, "CreateSurfaceOHOS")) return (void *)table->CreateSurfaceOHOS;
3545+
#endif // VK_USE_PLATFORM_OHOS
3546+
35323547
// ---- VK_NV_cooperative_matrix2 extension commands
35333548
if (!strcmp(name, "GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV")) return (void *)table->GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV;
35343549

@@ -10394,6 +10409,42 @@ VKAPI_ATTR void VKAPI_CALL UpdateIndirectExecutionSetShaderEXT(
1039410409
}
1039510410

1039610411

10412+
// ---- VK_OHOS_surface extension trampoline/terminators
10413+
10414+
#if defined(VK_USE_PLATFORM_OHOS)
10415+
VKAPI_ATTR VkResult VKAPI_CALL CreateSurfaceOHOS(
10416+
VkInstance instance,
10417+
const VkSurfaceCreateInfoOHOS* pCreateInfo,
10418+
const VkAllocationCallbacks* pAllocator,
10419+
VkSurfaceKHR* pSurface) {
10420+
struct loader_instance *inst = loader_get_instance(instance);
10421+
if (NULL == inst) {
10422+
loader_log(
10423+
NULL, VULKAN_LOADER_FATAL_ERROR_BIT | VULKAN_LOADER_ERROR_BIT | VULKAN_LOADER_VALIDATION_BIT, 0,
10424+
"vkCreateSurfaceOHOS: Invalid instance [VUID-vkCreateSurfaceOHOS-instance-parameter]");
10425+
abort(); /* Intentionally fail so user can correct issue. */
10426+
}
10427+
#error("Not implemented. Likely needs to be manually generated!");
10428+
return inst->disp->CreateSurfaceOHOS(instance, pCreateInfo, pAllocator, pSurface);
10429+
}
10430+
10431+
VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateSurfaceOHOS(
10432+
VkInstance instance,
10433+
const VkSurfaceCreateInfoOHOS* pCreateInfo,
10434+
const VkAllocationCallbacks* pAllocator,
10435+
VkSurfaceKHR* pSurface) {
10436+
struct loader_instance *inst = loader_get_instance(instance);
10437+
if (NULL == inst) {
10438+
loader_log(
10439+
NULL, VULKAN_LOADER_FATAL_ERROR_BIT | VULKAN_LOADER_ERROR_BIT | VULKAN_LOADER_VALIDATION_BIT, 0,
10440+
"vkCreateSurfaceOHOS: Invalid instance [VUID-vkCreateSurfaceOHOS-instance-parameter]");
10441+
abort(); /* Intentionally fail so user can correct issue. */
10442+
}
10443+
#error("Not implemented. Likely needs to be manually generated!");
10444+
}
10445+
10446+
#endif // VK_USE_PLATFORM_OHOS
10447+
1039710448
// ---- VK_NV_cooperative_matrix2 extension trampoline/terminators
1039810449

1039910450
VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
@@ -12998,6 +13049,16 @@ bool extension_instance_gpa(struct loader_instance *ptr_instance, const char *na
1299813049
return true;
1299913050
}
1300013051

13052+
// ---- VK_OHOS_surface extension commands
13053+
#if defined(VK_USE_PLATFORM_OHOS)
13054+
if (!strcmp("vkCreateSurfaceOHOS", name)) {
13055+
*addr = (ptr_instance->enabled_extensions.ohos_surface == 1)
13056+
? (void *)CreateSurfaceOHOS
13057+
: NULL;
13058+
return true;
13059+
}
13060+
#endif // VK_USE_PLATFORM_OHOS
13061+
1300113062
// ---- VK_NV_cooperative_matrix2 extension commands
1300213063
if (!strcmp("vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV", name)) {
1300313064
*addr = (void *)GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV;
@@ -13283,6 +13344,11 @@ void fill_out_enabled_instance_extensions(uint32_t extension_count, const char *
1328313344

1328413345
// ---- VK_NV_display_stereo extension commands
1328513346
else if (0 == strcmp(extension_list[i], VK_NV_DISPLAY_STEREO_EXTENSION_NAME)) { enables->nv_display_stereo = 1; }
13347+
13348+
// ---- VK_OHOS_surface extension commands
13349+
#if defined(VK_USE_PLATFORM_OHOS)
13350+
else if (0 == strcmp(extension_list[i], VK_OHOS_SURFACE_EXTENSION_NAME)) { enables->ohos_surface = 1; }
13351+
#endif // VK_USE_PLATFORM_OHOS
1328613352
}
1328713353
}
1328813354

@@ -13634,6 +13700,11 @@ const VkLayerInstanceDispatchTable instance_disp = {
1363413700
// ---- VK_NV_cooperative_vector extension commands
1363513701
.GetPhysicalDeviceCooperativeVectorPropertiesNV = terminator_GetPhysicalDeviceCooperativeVectorPropertiesNV,
1363613702

13703+
// ---- VK_OHOS_surface extension commands
13704+
#if defined(VK_USE_PLATFORM_OHOS)
13705+
.CreateSurfaceOHOS = terminator_CreateSurfaceOHOS,
13706+
#endif // VK_USE_PLATFORM_OHOS
13707+
1363713708
// ---- VK_NV_cooperative_matrix2 extension commands
1363813709
.GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV = terminator_GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV,
1363913710
};
@@ -13711,5 +13782,8 @@ const char *const LOADER_INSTANCE_EXTENSIONS[] = {
1371113782
VK_LUNARG_DIRECT_DRIVER_LOADING_EXTENSION_NAME,
1371213783
VK_EXT_LAYER_SETTINGS_EXTENSION_NAME,
1371313784
VK_NV_DISPLAY_STEREO_EXTENSION_NAME,
13785+
#if defined(VK_USE_PLATFORM_OHOS)
13786+
VK_OHOS_SURFACE_EXTENSION_NAME,
13787+
#endif // VK_USE_PLATFORM_OHOS
1371413788
NULL };
1371513789
// clang-format on

loader/generated/vk_loader_extensions.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,11 @@ struct loader_icd_term_dispatch {
486486
// ---- VK_NV_cooperative_vector extension commands
487487
PFN_vkGetPhysicalDeviceCooperativeVectorPropertiesNV GetPhysicalDeviceCooperativeVectorPropertiesNV;
488488

489+
// ---- VK_OHOS_surface extension commands
490+
#if defined(VK_USE_PLATFORM_OHOS)
491+
PFN_vkCreateSurfaceOHOS CreateSurfaceOHOS;
492+
#endif // VK_USE_PLATFORM_OHOS
493+
489494
// ---- VK_NV_cooperative_matrix2 extension commands
490495
PFN_vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV;
491496
};
@@ -559,6 +564,9 @@ struct loader_instance_extension_enable_list {
559564
uint8_t lunarg_direct_driver_loading;
560565
uint8_t ext_layer_settings;
561566
uint8_t nv_display_stereo;
567+
#if defined(VK_USE_PLATFORM_OHOS)
568+
uint8_t ohos_surface;
569+
#endif // defined(VK_USE_PLATFORM_OHOS)
562570
};
563571

564572
// Functions that required a terminator need to have a separate dispatch table which contains their corresponding

loader/loader.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include "winres.h"
2323

2424
// All set through CMake
25-
#define VER_FILE_VERSION 1, 4, 317, 0
26-
#define VER_FILE_DESCRIPTION_STR "1.4.317.Dev Build"
25+
#define VER_FILE_VERSION 1, 4, 318, 0
26+
#define VER_FILE_DESCRIPTION_STR "1.4.318.Dev Build"
2727
#define VER_FILE_VERSION_STR "Vulkan Loader - Dev Build"
2828
#define VER_COPYRIGHT_STR "Copyright (C) 2015-2025"
2929

scripts/known_good.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"sub_dir": "Vulkan-Headers",
88
"build_dir": "Vulkan-Headers/build",
99
"install_dir": "Vulkan-Headers/build/install",
10-
"commit": "v1.4.317"
10+
"commit": "v1.4.318"
1111
},
1212
{
1313
"name": "googletest",

tests/framework/layer/generated/vk_dispatch_table_helper.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,9 @@ static inline void layer_init_instance_dispatch_table(VkInstance instance, VkLay
913913
table->GetPhysicalDeviceExternalTensorPropertiesARM = (PFN_vkGetPhysicalDeviceExternalTensorPropertiesARM)gpa(instance, "vkGetPhysicalDeviceExternalTensorPropertiesARM");
914914
table->GetPhysicalDeviceOpticalFlowImageFormatsNV = (PFN_vkGetPhysicalDeviceOpticalFlowImageFormatsNV)gpa(instance, "vkGetPhysicalDeviceOpticalFlowImageFormatsNV");
915915
table->GetPhysicalDeviceCooperativeVectorPropertiesNV = (PFN_vkGetPhysicalDeviceCooperativeVectorPropertiesNV)gpa(instance, "vkGetPhysicalDeviceCooperativeVectorPropertiesNV");
916+
#if defined(VK_USE_PLATFORM_OHOS)
917+
table->CreateSurfaceOHOS = (PFN_vkCreateSurfaceOHOS)gpa(instance, "vkCreateSurfaceOHOS");
918+
#endif // VK_USE_PLATFORM_OHOS
916919
table->GetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV = (PFN_vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV)gpa(instance, "vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV");
917920
// clang-format on
918921
}

0 commit comments

Comments
 (0)