Skip to content

Commit

Permalink
build: Update to header 1.3.297
Browse files Browse the repository at this point in the history
  • Loading branch information
mikes-lunarg committed Oct 7, 2024
1 parent 84c71b7 commit 515c5ce
Show file tree
Hide file tree
Showing 17 changed files with 93 additions and 24 deletions.
2 changes: 1 addition & 1 deletion layers/VkLayer_khronos_validation.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "@JSON_LAYER_NAME@",
"type": "GLOBAL",
"library_path": "@JSON_LIBRARY_PATH@",
"api_version": "1.3.296",
"api_version": "1.3.297",
"implementation_version": "1",
"description": "Khronos Validation Layer",
"introduction": "The main, comprehensive Khronos validation layer.\n\nVulkan is an Explicit API, enabling direct control over how GPUs actually work. By design, minimal error checking is done inside a Vulkan driver. Applications have full control and responsibility for correct operation. Any errors in how Vulkan is used can result in a crash. \n\nThe Khronos Valiation Layer can be enabled to assist development by enabling developers to verify their applications correctly use the Vulkan API.",
Expand Down
6 changes: 6 additions & 0 deletions layers/vulkan/generated/device_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,12 @@ void GetEnabledDeviceFeatures(const VkDeviceCreateInfo *pCreateInfo, DeviceFeatu
features->primitiveTopologyPatchListRestart |= enabled->primitiveTopologyPatchListRestart == VK_TRUE;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_MODE_FIFO_LATEST_READY_FEATURES_EXT: {
const VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT *enabled =
reinterpret_cast<const VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT *>(pNext);
features->presentModeFifoLatestReady |= enabled->presentModeFifoLatestReady == VK_TRUE;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI: {
const VkPhysicalDeviceSubpassShadingFeaturesHUAWEI *enabled =
reinterpret_cast<const VkPhysicalDeviceSubpassShadingFeaturesHUAWEI *>(pNext);
Expand Down
2 changes: 2 additions & 0 deletions layers/vulkan/generated/device_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,8 @@ struct DeviceFeatures {
bool presentBarrier;
// VkPhysicalDevicePresentIdFeaturesKHR
bool presentId;
// VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT
bool presentModeFifoLatestReady;
// VkPhysicalDevicePresentWaitFeaturesKHR
bool presentWait;
// VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT
Expand Down
2 changes: 1 addition & 1 deletion layers/vulkan/generated/enum_flag_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <array>
#include "vulkan/vulkan.h"
// clang-format off
const uint32_t GeneratedVulkanHeaderVersion = 296;
const uint32_t GeneratedVulkanHeaderVersion = 297;
const VkAccessFlags AllVkAccessFlagBits = VK_ACCESS_INDIRECT_COMMAND_READ_BIT|VK_ACCESS_INDEX_READ_BIT|VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT|VK_ACCESS_UNIFORM_READ_BIT|VK_ACCESS_INPUT_ATTACHMENT_READ_BIT|VK_ACCESS_SHADER_READ_BIT|VK_ACCESS_SHADER_WRITE_BIT|VK_ACCESS_COLOR_ATTACHMENT_READ_BIT|VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT|VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT|VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT|VK_ACCESS_TRANSFER_READ_BIT|VK_ACCESS_TRANSFER_WRITE_BIT|VK_ACCESS_HOST_READ_BIT|VK_ACCESS_HOST_WRITE_BIT|VK_ACCESS_MEMORY_READ_BIT|VK_ACCESS_MEMORY_WRITE_BIT|VK_ACCESS_NONE|VK_ACCESS_TRANSFORM_FEEDBACK_WRITE_BIT_EXT|VK_ACCESS_TRANSFORM_FEEDBACK_COUNTER_READ_BIT_EXT|VK_ACCESS_TRANSFORM_FEEDBACK_COUNTER_WRITE_BIT_EXT|VK_ACCESS_CONDITIONAL_RENDERING_READ_BIT_EXT|VK_ACCESS_COLOR_ATTACHMENT_READ_NONCOHERENT_BIT_EXT|VK_ACCESS_ACCELERATION_STRUCTURE_READ_BIT_KHR|VK_ACCESS_ACCELERATION_STRUCTURE_WRITE_BIT_KHR|VK_ACCESS_FRAGMENT_DENSITY_MAP_READ_BIT_EXT|VK_ACCESS_FRAGMENT_SHADING_RATE_ATTACHMENT_READ_BIT_KHR|VK_ACCESS_COMMAND_PREPROCESS_READ_BIT_NV|VK_ACCESS_COMMAND_PREPROCESS_WRITE_BIT_NV;
const VkImageAspectFlags AllVkImageAspectFlagBits = VK_IMAGE_ASPECT_COLOR_BIT|VK_IMAGE_ASPECT_DEPTH_BIT|VK_IMAGE_ASPECT_STENCIL_BIT|VK_IMAGE_ASPECT_METADATA_BIT|VK_IMAGE_ASPECT_PLANE_0_BIT|VK_IMAGE_ASPECT_PLANE_1_BIT|VK_IMAGE_ASPECT_PLANE_2_BIT|VK_IMAGE_ASPECT_NONE|VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT|VK_IMAGE_ASPECT_MEMORY_PLANE_1_BIT_EXT|VK_IMAGE_ASPECT_MEMORY_PLANE_2_BIT_EXT|VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXT;
const VkInstanceCreateFlags AllVkInstanceCreateFlagBits = VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR;
Expand Down
3 changes: 3 additions & 0 deletions layers/vulkan/generated/error_location_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,7 @@ const char* String(Struct structure) {
{"VkPhysicalDevicePortabilitySubsetPropertiesKHR", 47},
{"VkPhysicalDevicePresentBarrierFeaturesNV", 41},
{"VkPhysicalDevicePresentIdFeaturesKHR", 37},
{"VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT", 54},
{"VkPhysicalDevicePresentWaitFeaturesKHR", 39},
{"VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT", 56},
{"VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT", 52},
Expand Down Expand Up @@ -3803,6 +3804,7 @@ const char* String(Field field) {
{"presentMask", 12},
{"presentMode", 12},
{"presentModeCount", 17},
{"presentModeFifoLatestReady", 27},
{"presentStartTimeUs", 19},
{"presentWait", 12},
{"preserveAttachmentCount", 24},
Expand Down Expand Up @@ -4942,6 +4944,7 @@ const char* String(Extension extension) {
{"VK_EXT_pipeline_protected_access", 33},
{"VK_EXT_pipeline_robustness", 27},
{"VK_EXT_post_depth_coverage", 27},
{"VK_EXT_present_mode_fifo_latest_ready", 38},
{"VK_EXT_primitive_topology_list_restart", 39},
{"VK_EXT_primitives_generated_query", 34},
{"VK_EXT_private_data", 20},
Expand Down
3 changes: 3 additions & 0 deletions layers/vulkan/generated/error_location_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,7 @@ enum class Struct {
VkPhysicalDevicePortabilitySubsetPropertiesKHR,
VkPhysicalDevicePresentBarrierFeaturesNV,
VkPhysicalDevicePresentIdFeaturesKHR,
VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT,
VkPhysicalDevicePresentWaitFeaturesKHR,
VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT,
VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT,
Expand Down Expand Up @@ -3796,6 +3797,7 @@ enum class Field {
presentMask,
presentMode,
presentModeCount,
presentModeFifoLatestReady,
presentStartTimeUs,
presentWait,
preserveAttachmentCount,
Expand Down Expand Up @@ -4926,6 +4928,7 @@ enum class Extension {
_VK_EXT_pipeline_protected_access,
_VK_EXT_pipeline_robustness,
_VK_EXT_post_depth_coverage,
_VK_EXT_present_mode_fifo_latest_ready,
_VK_EXT_primitive_topology_list_restart,
_VK_EXT_primitives_generated_query,
_VK_EXT_private_data,
Expand Down
15 changes: 15 additions & 0 deletions layers/vulkan/generated/feature_requirements_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4148,6 +4148,21 @@ FeatureAndName AddFeature(APIVersion api_version, vkt::Feature feature, void **i
}
return {&vk_struct->presentId, "VkPhysicalDevicePresentIdFeaturesKHR::presentId"};
}
case Feature::presentModeFifoLatestReady: {
auto vk_struct = const_cast<VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT *>(
vku::FindStructInPNextChain<VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT>(*inout_pnext_chain));
if (!vk_struct) {
vk_struct = new VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT;
*vk_struct = vku::InitStructHelper();
if (*inout_pnext_chain) {
vvl::PnextChainAdd(*inout_pnext_chain, vk_struct);
} else {
*inout_pnext_chain = vk_struct;
}
}
return {&vk_struct->presentModeFifoLatestReady,
"VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT::presentModeFifoLatestReady"};
}
case Feature::presentWait: {
auto vk_struct = const_cast<VkPhysicalDevicePresentWaitFeaturesKHR *>(
vku::FindStructInPNextChain<VkPhysicalDevicePresentWaitFeaturesKHR>(*inout_pnext_chain));
Expand Down
2 changes: 2 additions & 0 deletions layers/vulkan/generated/feature_requirements_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ enum class Feature {
presentBarrier,
// VkPhysicalDevicePresentIdFeaturesKHR
presentId,
// VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT
presentModeFifoLatestReady,
// VkPhysicalDevicePresentWaitFeaturesKHR
presentWait,
// VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT
Expand Down
5 changes: 5 additions & 0 deletions layers/vulkan/generated/pnext_chain_extraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2325,6 +2325,11 @@ void PnextChainFree(void *chain) {
header->pNext = nullptr;
delete reinterpret_cast<const VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT *>(header);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_MODE_FIFO_LATEST_READY_FEATURES_EXT:
PnextChainFree(header->pNext);
header->pNext = nullptr;
delete reinterpret_cast<const VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT *>(header);
break;
#ifdef VK_USE_PLATFORM_FUCHSIA
case VK_STRUCTURE_TYPE_IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA:
PnextChainFree(header->pNext);
Expand Down
19 changes: 19 additions & 0 deletions layers/vulkan/generated/stateless_validation_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2882,6 +2882,24 @@ bool StatelessValidation::ValidatePnextFeatureStructContents(const Location& loc
}
} break;

// Validation code for VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT structure members
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_MODE_FIFO_LATEST_READY_FEATURES_EXT: { // Covers
// VUID-VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT-sType-sType
if (is_const_param) {
[[maybe_unused]] const Location pNext_loc =
loc.pNext(Struct::VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT);
if (!IsExtEnabled(device_extensions.vk_ext_present_mode_fifo_latest_ready)) {
skip |= LogError(pnext_vuid, instance, pNext_loc,
"includes a pointer to a VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT, but when "
"creating VkDevice, the parent extension "
"(VK_EXT_present_mode_fifo_latest_ready) was not included in ppEnabledExtensionNames.");
}
VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT* structure =
(VkPhysicalDevicePresentModeFifoLatestReadyFeaturesEXT*)header;
skip |= ValidateBool32(pNext_loc.dot(Field::presentModeFifoLatestReady), structure->presentModeFifoLatestReady);
}
} break;

// Validation code for VkPhysicalDeviceSubpassShadingFeaturesHUAWEI structure members
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI: { // Covers
// VUID-VkPhysicalDeviceSubpassShadingFeaturesHUAWEI-sType-sType
Expand Down Expand Up @@ -9977,6 +9995,7 @@ bool StatelessValidation::PreCallValidateCreateDevice(VkPhysicalDevice physicalD
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_BARRIER_FEATURES_NV,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_MODE_FIFO_LATEST_READY_FEATURES_EXT,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHR,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVES_GENERATED_QUERY_FEATURES_EXT,
Expand Down
1 change: 1 addition & 0 deletions layers/vulkan/generated/test_icd_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ static const std::unordered_map<std::string, uint32_t> device_extension_map = {
{VK_EXT_DEVICE_ADDRESS_BINDING_REPORT_EXTENSION_NAME, VK_EXT_DEVICE_ADDRESS_BINDING_REPORT_SPEC_VERSION},
{VK_EXT_DEPTH_CLIP_CONTROL_EXTENSION_NAME, VK_EXT_DEPTH_CLIP_CONTROL_SPEC_VERSION},
{VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_EXTENSION_NAME, VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_SPEC_VERSION},
{VK_EXT_PRESENT_MODE_FIFO_LATEST_READY_EXTENSION_NAME, VK_EXT_PRESENT_MODE_FIFO_LATEST_READY_SPEC_VERSION},
#ifdef VK_USE_PLATFORM_FUCHSIA
{VK_FUCHSIA_EXTERNAL_MEMORY_EXTENSION_NAME, VK_FUCHSIA_EXTERNAL_MEMORY_SPEC_VERSION},
{VK_FUCHSIA_EXTERNAL_SEMAPHORE_EXTENSION_NAME, VK_FUCHSIA_EXTERNAL_SEMAPHORE_SPEC_VERSION},
Expand Down
5 changes: 5 additions & 0 deletions layers/vulkan/generated/valid_enum_values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,9 @@ ValidValue StatelessValidation::IsValidEnumValue(VkPresentModeKHR value) const {
case VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR:
case VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR:
return IsExtEnabled(device_extensions.vk_khr_shared_presentable_image) ? ValidValue::Valid : ValidValue::NoExtension;
case VK_PRESENT_MODE_FIFO_LATEST_READY_EXT:
return IsExtEnabled(device_extensions.vk_ext_present_mode_fifo_latest_ready) ? ValidValue::Valid
: ValidValue::NoExtension;
default:
return ValidValue::NotFound;
};
Expand Down Expand Up @@ -2834,6 +2837,8 @@ vvl::Extensions StatelessValidation::GetEnumExtensions(VkPresentModeKHR value) c
case VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR:
case VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR:
return {vvl::Extension::_VK_KHR_shared_presentable_image};
case VK_PRESENT_MODE_FIFO_LATEST_READY_EXT:
return {vvl::Extension::_VK_EXT_present_mode_fifo_latest_ready};
default:
return {};
};
Expand Down
1 change: 1 addition & 0 deletions layers/vulkan/generated/vk_extension_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ vvl::Extension GetExtension(std::string extension) {
{"VK_EXT_device_address_binding_report", vvl::Extension::_VK_EXT_device_address_binding_report},
{"VK_EXT_depth_clip_control", vvl::Extension::_VK_EXT_depth_clip_control},
{"VK_EXT_primitive_topology_list_restart", vvl::Extension::_VK_EXT_primitive_topology_list_restart},
{"VK_EXT_present_mode_fifo_latest_ready", vvl::Extension::_VK_EXT_present_mode_fifo_latest_ready},
{"VK_FUCHSIA_external_memory", vvl::Extension::_VK_FUCHSIA_external_memory},
{"VK_FUCHSIA_external_semaphore", vvl::Extension::_VK_FUCHSIA_external_semaphore},
{"VK_FUCHSIA_buffer_collection", vvl::Extension::_VK_FUCHSIA_buffer_collection},
Expand Down
5 changes: 5 additions & 0 deletions layers/vulkan/generated/vk_extension_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ struct DeviceExtensions : public InstanceExtensions {
ExtEnabled vk_ext_device_address_binding_report{kNotEnabled};
ExtEnabled vk_ext_depth_clip_control{kNotEnabled};
ExtEnabled vk_ext_primitive_topology_list_restart{kNotEnabled};
ExtEnabled vk_ext_present_mode_fifo_latest_ready{kNotEnabled};
ExtEnabled vk_fuchsia_external_memory{kNotEnabled};
ExtEnabled vk_fuchsia_external_semaphore{kNotEnabled};
ExtEnabled vk_fuchsia_buffer_collection{kNotEnabled};
Expand Down Expand Up @@ -1413,6 +1414,9 @@ struct DeviceExtensions : public InstanceExtensions {
Info(&DeviceExtensions::vk_ext_primitive_topology_list_restart,
{{{&DeviceExtensions::vk_khr_get_physical_device_properties2,
VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME}}})},
{vvl::Extension::_VK_EXT_present_mode_fifo_latest_ready,
Info(&DeviceExtensions::vk_ext_present_mode_fifo_latest_ready,
{{{&DeviceExtensions::vk_khr_swapchain, VK_KHR_SWAPCHAIN_EXTENSION_NAME}}})},
#ifdef VK_USE_PLATFORM_FUCHSIA
{vvl::Extension::_VK_FUCHSIA_external_memory,
Info(&DeviceExtensions::vk_fuchsia_external_memory,
Expand Down Expand Up @@ -2027,6 +2031,7 @@ constexpr bool IsDeviceExtension(vvl::Extension extension) {
case vvl::Extension::_VK_EXT_device_address_binding_report:
case vvl::Extension::_VK_EXT_depth_clip_control:
case vvl::Extension::_VK_EXT_primitive_topology_list_restart:
case vvl::Extension::_VK_EXT_present_mode_fifo_latest_ready:
case vvl::Extension::_VK_FUCHSIA_external_memory:
case vvl::Extension::_VK_FUCHSIA_external_semaphore:
case vvl::Extension::_VK_FUCHSIA_buffer_collection:
Expand Down
Loading

0 comments on commit 515c5ce

Please sign in to comment.