Skip to content

Commit

Permalink
build: Update to header 1.3.285
Browse files Browse the repository at this point in the history
  • Loading branch information
mikes-lunarg authored and spencer-lunarg committed May 14, 2024
1 parent 5b41904 commit 8d6ac1b
Show file tree
Hide file tree
Showing 18 changed files with 119 additions and 16 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": "VK_LAYER_KHRONOS_validation",
"type": "GLOBAL",
"library_path": "@JSON_LIBRARY_PATH@",
"api_version": "1.3.284",
"api_version": "1.3.285",
"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
1 change: 1 addition & 0 deletions layers/vulkan/generated/best_practices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ std::string GetSpecialUse(vvl::Extension extension_name) {
{vvl::Extension::_VK_ANDROID_external_format_resolve, "glemulation"},
{vvl::Extension::_VK_EXT_mutable_descriptor_type, "d3demulation"},
{vvl::Extension::_VK_EXT_legacy_vertex_attributes, "glemulation"},
{vvl::Extension::_VK_MESA_image_alignment_control, "d3demulation"},
};

auto it = special_use_extensions.find(extension_name);
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 = 284;
const uint32_t GeneratedVulkanHeaderVersion = 285;
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
7 changes: 7 additions & 0 deletions layers/vulkan/generated/error_location_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ const char* String(Struct structure) {
{"VkHostImageCopyDevicePerformanceQueryEXT", 41},
{"VkHostImageLayoutTransitionInfoEXT", 35},
{"VkIOSSurfaceCreateInfoMVK", 26},
{"VkImageAlignmentControlCreateInfoMESA", 38},
{"VkImageBlit", 12},
{"VkImageBlit2", 13},
{"VkImageCaptureDescriptorDataInfoEXT", 36},
Expand Down Expand Up @@ -1257,6 +1258,8 @@ const char* String(Struct structure) {
{"VkPhysicalDeviceHostQueryResetFeatures", 39},
{"VkPhysicalDeviceIDProperties", 29},
{"VkPhysicalDeviceImage2DViewOf3DFeaturesEXT", 43},
{"VkPhysicalDeviceImageAlignmentControlFeaturesMESA", 50},
{"VkPhysicalDeviceImageAlignmentControlPropertiesMESA", 52},
{"VkPhysicalDeviceImageCompressionControlFeaturesEXT", 51},
{"VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT", 60},
{"VkPhysicalDeviceImageDrmFormatModifierInfoEXT", 46},
Expand Down Expand Up @@ -2446,6 +2449,7 @@ const char* String(Field field) {
{"idrPeriod", 10},
{"image", 6},
{"image2DViewOf3D", 16},
{"imageAlignmentControl", 22},
{"imageArrayLayers", 17},
{"imageBindCount", 15},
{"imageCaptureReplayDescriptorDataSize", 37},
Expand Down Expand Up @@ -2870,6 +2874,7 @@ const char* String(Field field) {
{"maxX", 5},
{"maxY", 5},
{"maxZ", 5},
{"maximumRequestedAlignment", 26},
{"memory", 7},
{"memoryBarrierCount", 19},
{"memoryBindIndex", 16},
Expand Down Expand Up @@ -4170,6 +4175,7 @@ const char* String(Field field) {
{"supportedDepthResolveModes", 27},
{"supportedEncodeFeedbackFlags", 29},
{"supportedHintGridSizes", 23},
{"supportedImageAlignmentMask", 28},
{"supportedOperations", 20},
{"supportedOutputGridSizes", 25},
{"supportedPresentGravityX", 25},
Expand Down Expand Up @@ -4953,6 +4959,7 @@ const char* String(Extension extension) {
{"VK_KHR_xlib_surface", 20},
{"VK_KHR_zero_initialize_workgroup_memory", 40},
{"VK_LUNARG_direct_driver_loading", 32},
{"VK_MESA_image_alignment_control", 32},
{"VK_MSFT_layered_driver", 23},
{"VK_MVK_ios_surface", 19},
{"VK_MVK_macos_surface", 21},
Expand Down
7 changes: 7 additions & 0 deletions layers/vulkan/generated/error_location_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ enum class Struct {
VkHostImageCopyDevicePerformanceQueryEXT,
VkHostImageLayoutTransitionInfoEXT,
VkIOSSurfaceCreateInfoMVK,
VkImageAlignmentControlCreateInfoMESA,
VkImageBlit,
VkImageBlit2,
VkImageCaptureDescriptorDataInfoEXT,
Expand Down Expand Up @@ -1253,6 +1254,8 @@ enum class Struct {
VkPhysicalDeviceHostQueryResetFeatures,
VkPhysicalDeviceIDProperties,
VkPhysicalDeviceImage2DViewOf3DFeaturesEXT,
VkPhysicalDeviceImageAlignmentControlFeaturesMESA,
VkPhysicalDeviceImageAlignmentControlPropertiesMESA,
VkPhysicalDeviceImageCompressionControlFeaturesEXT,
VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT,
VkPhysicalDeviceImageDrmFormatModifierInfoEXT,
Expand Down Expand Up @@ -2439,6 +2442,7 @@ enum class Field {
idrPeriod,
image,
image2DViewOf3D,
imageAlignmentControl,
imageArrayLayers,
imageBindCount,
imageCaptureReplayDescriptorDataSize,
Expand Down Expand Up @@ -2863,6 +2867,7 @@ enum class Field {
maxX,
maxY,
maxZ,
maximumRequestedAlignment,
memory,
memoryBarrierCount,
memoryBindIndex,
Expand Down Expand Up @@ -4163,6 +4168,7 @@ enum class Field {
supportedDepthResolveModes,
supportedEncodeFeedbackFlags,
supportedHintGridSizes,
supportedImageAlignmentMask,
supportedOperations,
supportedOutputGridSizes,
supportedPresentGravityX,
Expand Down Expand Up @@ -4937,6 +4943,7 @@ enum class Extension {
_VK_KHR_xlib_surface,
_VK_KHR_zero_initialize_workgroup_memory,
_VK_LUNARG_direct_driver_loading,
_VK_MESA_image_alignment_control,
_VK_MSFT_layered_driver,
_VK_MVK_ios_surface,
_VK_MVK_macos_surface,
Expand Down
14 changes: 14 additions & 0 deletions layers/vulkan/generated/feature_requirements_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2727,6 +2727,20 @@ FeatureAndName AddFeature(APIVersion api_version, vkt::Feature feature, void **i
}
return {&vk_struct->sampler2DViewOf3D, "VkPhysicalDeviceImage2DViewOf3DFeaturesEXT::sampler2DViewOf3D"};
}
case Feature::imageAlignmentControl: {
auto vk_struct = const_cast<VkPhysicalDeviceImageAlignmentControlFeaturesMESA *>(
vku::FindStructInPNextChain<VkPhysicalDeviceImageAlignmentControlFeaturesMESA>(*inout_pnext_chain));
if (!vk_struct) {
vk_struct = new VkPhysicalDeviceImageAlignmentControlFeaturesMESA;
*vk_struct = vku::InitStructHelper();
if (*inout_pnext_chain) {
vvl::PnextChainAdd(*inout_pnext_chain, vk_struct);
} else {
*inout_pnext_chain = vk_struct;
}
}
return {&vk_struct->imageAlignmentControl, "VkPhysicalDeviceImageAlignmentControlFeaturesMESA::imageAlignmentControl"};
}
case Feature::imageCompressionControl: {
auto vk_struct = const_cast<VkPhysicalDeviceImageCompressionControlFeaturesEXT *>(
vku::FindStructInPNextChain<VkPhysicalDeviceImageCompressionControlFeaturesEXT>(*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 @@ -440,6 +440,8 @@ enum class Feature {
image2DViewOf3D,
// VkPhysicalDeviceImage2DViewOf3DFeaturesEXT
sampler2DViewOf3D,
// VkPhysicalDeviceImageAlignmentControlFeaturesMESA
imageAlignmentControl,
// VkPhysicalDeviceImageCompressionControlFeaturesEXT
imageCompressionControl,
// VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT
Expand Down
15 changes: 15 additions & 0 deletions layers/vulkan/generated/pnext_chain_extraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2928,6 +2928,21 @@ void PnextChainFree(void *chain) {
header->pNext = nullptr;
delete reinterpret_cast<const VkPhysicalDeviceRayTracingValidationFeaturesNV *>(header);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA:
PnextChainFree(header->pNext);
header->pNext = nullptr;
delete reinterpret_cast<const VkPhysicalDeviceImageAlignmentControlFeaturesMESA *>(header);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_PROPERTIES_MESA:
PnextChainFree(header->pNext);
header->pNext = nullptr;
delete reinterpret_cast<const VkPhysicalDeviceImageAlignmentControlPropertiesMESA *>(header);
break;
case VK_STRUCTURE_TYPE_IMAGE_ALIGNMENT_CONTROL_CREATE_INFO_MESA:
PnextChainFree(header->pNext);
header->pNext = nullptr;
delete reinterpret_cast<const VkImageAlignmentControlCreateInfoMESA *>(header);
break;
case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR:
PnextChainFree(header->pNext);
header->pNext = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions layers/vulkan/generated/spirv_validation_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ static const std::unordered_multimap<uint32_t, RequiredSpirvInfo> spirvCapabilit
// Not found in current SPIR-V Headers
// {spv::CapabilityClusterCullingShadingHUAWEI, {0, &DeviceFeatures::clustercullingShader, nullptr, ""}},
{spv::CapabilityRayTracingPositionFetchKHR, {0, &DeviceFeatures::rayTracingPositionFetch, nullptr, ""}},
{spv::CapabilityRayQueryPositionFetchKHR, {0, &DeviceFeatures::rayTracingPositionFetch, nullptr, ""}},
{spv::CapabilityTileImageColorReadAccessEXT, {0, &DeviceFeatures::shaderTileImageColorReadAccess, nullptr, ""}},
{spv::CapabilityTileImageDepthReadAccessEXT, {0, &DeviceFeatures::shaderTileImageDepthReadAccess, nullptr, ""}},
{spv::CapabilityTileImageStencilReadAccessEXT, {0, &DeviceFeatures::shaderTileImageStencilReadAccess, nullptr, ""}},
Expand All @@ -247,8 +248,6 @@ static const std::unordered_multimap<uint32_t, RequiredSpirvInfo> spirvCapabilit
{spv::CapabilityExpectAssumeKHR, {0, &DeviceFeatures::shaderExpectAssume, nullptr, ""}},
{spv::CapabilityFloatControls2, {0, &DeviceFeatures::shaderFloatControls2, nullptr, ""}},
{spv::CapabilityQuadControlKHR, {0, &DeviceFeatures::shaderQuadControl, nullptr, ""}},
// Not found in current SPIR-V Headers
// {spv::CapabilityMaximallyReconvergesKHR, {0, &DeviceFeatures::shaderMaximalReconvergence, nullptr, ""}},
{spv::CapabilityRawAccessChainsNV, {0, &DeviceFeatures::shaderRawAccessChains, nullptr, ""}},
};
// clang-format on
Expand Down Expand Up @@ -947,6 +946,7 @@ static inline const char* SpvCapabilityRequirements(uint32_t capability) {
{spv::CapabilityCoreBuiltinsARM, "VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM::shaderCoreBuiltins"},
{spv::CapabilityShaderInvocationReorderNV, "VK_NV_ray_tracing_invocation_reorder"},
{spv::CapabilityRayTracingPositionFetchKHR, "VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR::rayTracingPositionFetch"},
{spv::CapabilityRayQueryPositionFetchKHR, "VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR::rayTracingPositionFetch"},
{spv::CapabilityTileImageColorReadAccessEXT, "VkPhysicalDeviceShaderTileImageFeaturesEXT::shaderTileImageColorReadAccess"},
{spv::CapabilityTileImageDepthReadAccessEXT, "VkPhysicalDeviceShaderTileImageFeaturesEXT::shaderTileImageDepthReadAccess"},
{spv::CapabilityTileImageStencilReadAccessEXT, "VkPhysicalDeviceShaderTileImageFeaturesEXT::shaderTileImageStencilReadAccess"},
Expand Down
6 changes: 6 additions & 0 deletions layers/vulkan/generated/state_tracker_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,12 @@ void GetEnabledDeviceFeatures(const VkDeviceCreateInfo *pCreateInfo, DeviceFeatu
features->rayTracingValidation |= enabled->rayTracingValidation == VK_TRUE;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ALIGNMENT_CONTROL_FEATURES_MESA: {
const VkPhysicalDeviceImageAlignmentControlFeaturesMESA *enabled =
reinterpret_cast<const VkPhysicalDeviceImageAlignmentControlFeaturesMESA *>(pNext);
features->imageAlignmentControl |= enabled->imageAlignmentControl == VK_TRUE;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHR: {
const VkPhysicalDeviceAccelerationStructureFeaturesKHR *enabled =
reinterpret_cast<const VkPhysicalDeviceAccelerationStructureFeaturesKHR *>(pNext);
Expand Down
2 changes: 2 additions & 0 deletions layers/vulkan/generated/state_tracker_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ struct DeviceFeatures {
bool image2DViewOf3D;
// VkPhysicalDeviceImage2DViewOf3DFeaturesEXT
bool sampler2DViewOf3D;
// VkPhysicalDeviceImageAlignmentControlFeaturesMESA
bool imageAlignmentControl;
// VkPhysicalDeviceImageCompressionControlFeaturesEXT
bool imageCompressionControl;
// VkPhysicalDeviceImageCompressionControlSwapchainFeaturesEXT
Expand Down

0 comments on commit 8d6ac1b

Please sign in to comment.