Skip to content

Commit

Permalink
build: Update to header 1.3.266
Browse files Browse the repository at this point in the history
- Update known-good
- Generate source
  • Loading branch information
mikes-lunarg committed Sep 29, 2023
1 parent af32f69 commit 8e35cbd
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# ~~~
cmake_minimum_required(VERSION 3.17.2)

project(VULKAN_LOADER VERSION 1.3.265)
project(VULKAN_LOADER VERSION 1.3.266)

add_subdirectory(scripts)

Expand Down
7 changes: 7 additions & 0 deletions loader/generated/vk_layer_dispatch_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,13 @@ typedef struct VkLayerDispatchTable_ {
PFN_vkGetFramebufferTilePropertiesQCOM GetFramebufferTilePropertiesQCOM;
PFN_vkGetDynamicRenderingTilePropertiesQCOM GetDynamicRenderingTilePropertiesQCOM;

// ---- VK_NV_low_latency2 extension commands
PFN_vkSetLatencySleepModeNV SetLatencySleepModeNV;
PFN_vkLatencySleepNV LatencySleepNV;
PFN_vkSetLatencyMarkerNV SetLatencyMarkerNV;
PFN_vkGetLatencyTimingsNV GetLatencyTimingsNV;
PFN_vkQueueNotifyOutOfBandNV QueueNotifyOutOfBandNV;

// ---- VK_EXT_attachment_feedback_loop_dynamic_state extension commands
PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT CmdSetAttachmentFeedbackLoopEnableEXT;

Expand Down
109 changes: 109 additions & 0 deletions loader/generated/vk_loader_extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,13 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_extension_dispatch_table(struct lo
table->GetFramebufferTilePropertiesQCOM = (PFN_vkGetFramebufferTilePropertiesQCOM)gdpa(dev, "vkGetFramebufferTilePropertiesQCOM");
table->GetDynamicRenderingTilePropertiesQCOM = (PFN_vkGetDynamicRenderingTilePropertiesQCOM)gdpa(dev, "vkGetDynamicRenderingTilePropertiesQCOM");

// ---- VK_NV_low_latency2 extension commands
table->SetLatencySleepModeNV = (PFN_vkSetLatencySleepModeNV)gdpa(dev, "vkSetLatencySleepModeNV");
table->LatencySleepNV = (PFN_vkLatencySleepNV)gdpa(dev, "vkLatencySleepNV");
table->SetLatencyMarkerNV = (PFN_vkSetLatencyMarkerNV)gdpa(dev, "vkSetLatencyMarkerNV");
table->GetLatencyTimingsNV = (PFN_vkGetLatencyTimingsNV)gdpa(dev, "vkGetLatencyTimingsNV");
table->QueueNotifyOutOfBandNV = (PFN_vkQueueNotifyOutOfBandNV)gdpa(dev, "vkQueueNotifyOutOfBandNV");

// ---- VK_EXT_attachment_feedback_loop_dynamic_state extension commands
table->CmdSetAttachmentFeedbackLoopEnableEXT = (PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT)gdpa(dev, "vkCmdSetAttachmentFeedbackLoopEnableEXT");

Expand Down Expand Up @@ -2851,6 +2858,13 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
if (!strcmp(name, "GetFramebufferTilePropertiesQCOM")) return (void *)table->GetFramebufferTilePropertiesQCOM;
if (!strcmp(name, "GetDynamicRenderingTilePropertiesQCOM")) return (void *)table->GetDynamicRenderingTilePropertiesQCOM;

// ---- VK_NV_low_latency2 extension commands
if (!strcmp(name, "SetLatencySleepModeNV")) return (void *)table->SetLatencySleepModeNV;
if (!strcmp(name, "LatencySleepNV")) return (void *)table->LatencySleepNV;
if (!strcmp(name, "SetLatencyMarkerNV")) return (void *)table->SetLatencyMarkerNV;
if (!strcmp(name, "GetLatencyTimingsNV")) return (void *)table->GetLatencyTimingsNV;
if (!strcmp(name, "QueueNotifyOutOfBandNV")) return (void *)table->QueueNotifyOutOfBandNV;

// ---- VK_EXT_attachment_feedback_loop_dynamic_state extension commands
if (!strcmp(name, "CmdSetAttachmentFeedbackLoopEnableEXT")) return (void *)table->CmdSetAttachmentFeedbackLoopEnableEXT;

Expand Down Expand Up @@ -8962,6 +8976,79 @@ VKAPI_ATTR VkResult VKAPI_CALL GetDynamicRenderingTilePropertiesQCOM(
}


// ---- VK_NV_low_latency2 extension trampoline/terminators

VKAPI_ATTR VkResult VKAPI_CALL SetLatencySleepModeNV(
VkDevice device,
VkSwapchainKHR swapchain,
VkLatencySleepModeInfoNV* pSleepModeInfo) {
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
if (NULL == disp) {
loader_log(NULL, VULKAN_LOADER_FATAL_ERROR_BIT | VULKAN_LOADER_ERROR_BIT | VULKAN_LOADER_VALIDATION_BIT, 0,
"vkSetLatencySleepModeNV: Invalid device "
"[VUID-vkSetLatencySleepModeNV-device-parameter]");
abort(); /* Intentionally fail so user can correct issue. */
}
return disp->SetLatencySleepModeNV(device, swapchain, pSleepModeInfo);
}

VKAPI_ATTR VkResult VKAPI_CALL LatencySleepNV(
VkDevice device,
VkSwapchainKHR swapchain,
VkLatencySleepInfoNV* pSleepInfo) {
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
if (NULL == disp) {
loader_log(NULL, VULKAN_LOADER_FATAL_ERROR_BIT | VULKAN_LOADER_ERROR_BIT | VULKAN_LOADER_VALIDATION_BIT, 0,
"vkLatencySleepNV: Invalid device "
"[VUID-vkLatencySleepNV-device-parameter]");
abort(); /* Intentionally fail so user can correct issue. */
}
return disp->LatencySleepNV(device, swapchain, pSleepInfo);
}

VKAPI_ATTR void VKAPI_CALL SetLatencyMarkerNV(
VkDevice device,
VkSwapchainKHR swapchain,
VkSetLatencyMarkerInfoNV* pLatencyMarkerInfo) {
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
if (NULL == disp) {
loader_log(NULL, VULKAN_LOADER_FATAL_ERROR_BIT | VULKAN_LOADER_ERROR_BIT | VULKAN_LOADER_VALIDATION_BIT, 0,
"vkSetLatencyMarkerNV: Invalid device "
"[VUID-vkSetLatencyMarkerNV-device-parameter]");
abort(); /* Intentionally fail so user can correct issue. */
}
disp->SetLatencyMarkerNV(device, swapchain, pLatencyMarkerInfo);
}

VKAPI_ATTR void VKAPI_CALL GetLatencyTimingsNV(
VkDevice device,
VkSwapchainKHR swapchain,
uint32_t* pTimingCount,
VkGetLatencyMarkerInfoNV* pLatencyMarkerInfo) {
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
if (NULL == disp) {
loader_log(NULL, VULKAN_LOADER_FATAL_ERROR_BIT | VULKAN_LOADER_ERROR_BIT | VULKAN_LOADER_VALIDATION_BIT, 0,
"vkGetLatencyTimingsNV: Invalid device "
"[VUID-vkGetLatencyTimingsNV-device-parameter]");
abort(); /* Intentionally fail so user can correct issue. */
}
disp->GetLatencyTimingsNV(device, swapchain, pTimingCount, pLatencyMarkerInfo);
}

VKAPI_ATTR void VKAPI_CALL QueueNotifyOutOfBandNV(
VkQueue queue,
VkOutOfBandQueueTypeInfoNV pQueueTypeInfo) {
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
if (NULL == disp) {
loader_log(NULL, VULKAN_LOADER_FATAL_ERROR_BIT | VULKAN_LOADER_ERROR_BIT | VULKAN_LOADER_VALIDATION_BIT, 0,
"vkQueueNotifyOutOfBandNV: Invalid queue "
"[VUID-vkQueueNotifyOutOfBandNV-queue-parameter]");
abort(); /* Intentionally fail so user can correct issue. */
}
disp->QueueNotifyOutOfBandNV(queue, pQueueTypeInfo);
}


// ---- VK_EXT_attachment_feedback_loop_dynamic_state extension trampoline/terminators

VKAPI_ATTR void VKAPI_CALL CmdSetAttachmentFeedbackLoopEnableEXT(
Expand Down Expand Up @@ -11198,6 +11285,28 @@ bool extension_instance_gpa(struct loader_instance *ptr_instance, const char *na
return true;
}

// ---- VK_NV_low_latency2 extension commands
if (!strcmp("vkSetLatencySleepModeNV", name)) {
*addr = (void *)SetLatencySleepModeNV;
return true;
}
if (!strcmp("vkLatencySleepNV", name)) {
*addr = (void *)LatencySleepNV;
return true;
}
if (!strcmp("vkSetLatencyMarkerNV", name)) {
*addr = (void *)SetLatencyMarkerNV;
return true;
}
if (!strcmp("vkGetLatencyTimingsNV", name)) {
*addr = (void *)GetLatencyTimingsNV;
return true;
}
if (!strcmp("vkQueueNotifyOutOfBandNV", name)) {
*addr = (void *)QueueNotifyOutOfBandNV;
return true;
}

// ---- VK_EXT_attachment_feedback_loop_dynamic_state extension commands
if (!strcmp("vkCmdSetAttachmentFeedbackLoopEnableEXT", name)) {
*addr = (void *)CmdSetAttachmentFeedbackLoopEnableEXT;
Expand Down
4 changes: 2 additions & 2 deletions loader/loader.rc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include "winres.h"

// All set through CMake
#define VER_FILE_VERSION 1, 3, 265, 0
#define VER_FILE_DESCRIPTION_STR "1.3.265.Dev Build"
#define VER_FILE_VERSION 1, 3, 266, 0
#define VER_FILE_DESCRIPTION_STR "1.3.266.Dev Build"
#define VER_FILE_VERSION_STR "Vulkan Loader - Dev Build"
#define VER_COPYRIGHT_STR "Copyright (C) 2015-2023"

Expand Down
2 changes: 1 addition & 1 deletion scripts/known_good.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sub_dir": "Vulkan-Headers",
"build_dir": "Vulkan-Headers/build",
"install_dir": "Vulkan-Headers/build/install",
"commit": "v1.3.265"
"commit": "v1.3.266"
},
{
"name": "googletest",
Expand Down

0 comments on commit 8e35cbd

Please sign in to comment.