Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
cmake_minimum_required(VERSION 3.22.1)

# The VERSION field is generated with the "--generated-version" flag in the generate_source.py script
project(Vulkan-Tools VERSION 1.4.326)
project(Vulkan-Tools VERSION 1.4.327)

# This variable enables downstream users to customize the target API
# variant (e.g. Vulkan SC)
Expand Down
2 changes: 1 addition & 1 deletion icd/VkICD_mock_icd.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"file_format_version": "1.0.1",
"ICD": {
"library_path": "@JSON_LIBRARY_PATH@",
"api_version": "1.4.326"
"api_version": "1.4.327"
}
}
2 changes: 2 additions & 0 deletions icd/generated/function_declarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ static const std::unordered_map<std::string, uint32_t> device_extension_map = {
{"VK_KHR_ray_tracing_maintenance1", 1},
{"VK_KHR_shader_untyped_pointers", 1},
{"VK_EXT_global_priority_query", 1},
{"VK_VALVE_video_encode_rgb_conversion", 1},
{"VK_EXT_image_view_min_lod", 1},
{"VK_EXT_multi_draw", 1},
{"VK_EXT_image_2d_view_of_3d", 1},
Expand Down Expand Up @@ -4115,6 +4116,7 @@ static VKAPI_ATTR void VKAPI_CALL CmdSetColor




static VKAPI_ATTR void VKAPI_CALL CmdDrawMultiEXT(
VkCommandBuffer commandBuffer,
uint32_t drawCount,
Expand Down
1 change: 1 addition & 0 deletions icd/generated/function_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -6669,6 +6669,7 @@ static VKAPI_ATTR void VKAPI_CALL CmdSetColor




static VKAPI_ATTR void VKAPI_CALL CmdDrawMultiEXT(
VkCommandBuffer commandBuffer,
uint32_t drawCount,
Expand Down
36 changes: 36 additions & 0 deletions icd/generated/vk_typemap_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7521,6 +7521,42 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVES_GENE
typedef VkPhysicalDevicePrimitivesGeneratedQueryFeaturesEXT Type;
};

// Map type VkPhysicalDeviceVideoEncodeRgbConversionFeaturesVALVE to id VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_ENCODE_RGB_CONVERSION_FEATURES_VALVE
template <> struct LvlTypeMap<VkPhysicalDeviceVideoEncodeRgbConversionFeaturesVALVE> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_ENCODE_RGB_CONVERSION_FEATURES_VALVE;
};

template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_ENCODE_RGB_CONVERSION_FEATURES_VALVE> {
typedef VkPhysicalDeviceVideoEncodeRgbConversionFeaturesVALVE Type;
};

// Map type VkVideoEncodeRgbConversionCapabilitiesVALVE to id VK_STRUCTURE_TYPE_VIDEO_ENCODE_RGB_CONVERSION_CAPABILITIES_VALVE
template <> struct LvlTypeMap<VkVideoEncodeRgbConversionCapabilitiesVALVE> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_VIDEO_ENCODE_RGB_CONVERSION_CAPABILITIES_VALVE;
};

template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_VIDEO_ENCODE_RGB_CONVERSION_CAPABILITIES_VALVE> {
typedef VkVideoEncodeRgbConversionCapabilitiesVALVE Type;
};

// Map type VkVideoEncodeProfileRgbConversionInfoVALVE to id VK_STRUCTURE_TYPE_VIDEO_ENCODE_PROFILE_RGB_CONVERSION_INFO_VALVE
template <> struct LvlTypeMap<VkVideoEncodeProfileRgbConversionInfoVALVE> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_VIDEO_ENCODE_PROFILE_RGB_CONVERSION_INFO_VALVE;
};

template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_VIDEO_ENCODE_PROFILE_RGB_CONVERSION_INFO_VALVE> {
typedef VkVideoEncodeProfileRgbConversionInfoVALVE Type;
};

// Map type VkVideoEncodeSessionRgbConversionCreateInfoVALVE to id VK_STRUCTURE_TYPE_VIDEO_ENCODE_SESSION_RGB_CONVERSION_CREATE_INFO_VALVE
template <> struct LvlTypeMap<VkVideoEncodeSessionRgbConversionCreateInfoVALVE> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_VIDEO_ENCODE_SESSION_RGB_CONVERSION_CREATE_INFO_VALVE;
};

template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_VIDEO_ENCODE_SESSION_RGB_CONVERSION_CREATE_INFO_VALVE> {
typedef VkVideoEncodeSessionRgbConversionCreateInfoVALVE Type;
};

// Map type VkPhysicalDeviceImageViewMinLodFeaturesEXT to id VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT
template <> struct LvlTypeMap<VkPhysicalDeviceImageViewMinLodFeaturesEXT> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT;
Expand Down
4 changes: 2 additions & 2 deletions scripts/known_good.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"sub_dir": "Vulkan-Headers",
"build_dir": "Vulkan-Headers/build",
"install_dir": "Vulkan-Headers/build/install",
"commit": "v1.4.326"
"commit": "v1.4.327"
},
{
"name": "MoltenVK",
Expand Down Expand Up @@ -56,7 +56,7 @@
"cmake_options": [
"-DLOADER_USE_UNSAFE_FILE_SEARCH=ON"
],
"commit": "v1.4.326",
"commit": "v1.4.327",
"build_platforms": [
"windows",
"linux",
Expand Down
34 changes: 24 additions & 10 deletions scripts/vulkaninfo_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,56 +119,65 @@
'type': EXTENSION_TYPE_BOTH,
'holder_type': 'VkPhysicalDeviceProperties2',
'print_iterator': True,
'can_show_promoted_structs': True}),
'can_show_promoted_structs': True,
'ignore_vendor_exclusion': False}),
('phys_device_mem_props2',
{'extends': 'VkPhysicalDeviceMemoryProperties2',
'type': EXTENSION_TYPE_DEVICE,
'holder_type':'VkPhysicalDeviceMemoryProperties2',
'print_iterator': False,
'can_show_promoted_structs': False}),
'can_show_promoted_structs': False,
'ignore_vendor_exclusion': False}),
('phys_device_features2',
{'extends': 'VkPhysicalDeviceFeatures2,VkDeviceCreateInfo',
'type': EXTENSION_TYPE_DEVICE,
'holder_type': 'VkPhysicalDeviceFeatures2',
'print_iterator': True,
'can_show_promoted_structs': True}),
'can_show_promoted_structs': True,
'ignore_vendor_exclusion': False}),
('surface_capabilities2',
{'extends': 'VkSurfaceCapabilities2KHR',
'type': EXTENSION_TYPE_BOTH,
'holder_type': 'VkSurfaceCapabilities2KHR',
'print_iterator': True,
'can_show_promoted_structs': False,
'ignore_vendor_exclusion': False,
'exclude': ['VkSurfacePresentScalingCapabilitiesKHR', 'VkSurfacePresentModeCompatibilityKHR']}),
('format_properties2',
{'extends': 'VkFormatProperties2',
'type': EXTENSION_TYPE_DEVICE,
'holder_type':'VkFormatProperties2',
'print_iterator': True,
'can_show_promoted_structs': False}),
'can_show_promoted_structs': False,
'ignore_vendor_exclusion': False}),
('queue_properties2',
{'extends': 'VkQueueFamilyProperties2',
'type': EXTENSION_TYPE_DEVICE,
'holder_type': 'VkQueueFamilyProperties2',
'print_iterator': True,
'can_show_promoted_structs': False}),
'can_show_promoted_structs': False,
'ignore_vendor_exclusion': False}),
('video_profile_info',
{'extends': 'VkVideoProfileInfoKHR',
'type': EXTENSION_TYPE_DEVICE,
'holder_type': 'VkVideoProfileInfoKHR',
'print_iterator': True,
'can_show_promoted_structs': False}),
'can_show_promoted_structs': False,
'ignore_vendor_exclusion': True}),
('video_capabilities',
{'extends': 'VkVideoCapabilitiesKHR',
'type': EXTENSION_TYPE_DEVICE,
'holder_type': 'VkVideoCapabilitiesKHR',
'print_iterator': True,
'can_show_promoted_structs': False}),
'can_show_promoted_structs': False,
'ignore_vendor_exclusion': True,}),
('video_format_properties',
{'extends': 'VkVideoFormatPropertiesKHR',
'type': EXTENSION_TYPE_DEVICE,
'holder_type': 'VkVideoFormatPropertiesKHR',
'print_iterator': True,
'can_show_promoted_structs': False})
'can_show_promoted_structs': False,
'ignore_vendor_exclusion': True})
))
class VulkanInfoGeneratorOptions(GeneratorOptions):
def __init__(self,
Expand Down Expand Up @@ -856,16 +865,21 @@ def genType(self, typeinfo, name, alias):
self.all_structures.append(VulkanStructure(
name, typeinfo.elem, self.constants, self.extTypes))

is_vendor_type = False
for vendor in self.vendor_abbreviations:
for node in typeinfo.elem.findall('member'):
if node.get('values') is not None:
if node.get('values').find(vendor) != -1:
return
is_vendor_type = True
break
if is_vendor_type:
break

for key, value in EXTENSION_CATEGORIES.items():
if str(typeinfo.elem.get('structextends')).find(value.get('extends')) != -1:
if value.get('exclude') is None or name not in value.get('exclude'):
self.extension_sets[key].add(name)
if not is_vendor_type or value.get('ignore_vendor_exclusion'):
self.extension_sets[key].add(name)

# finds all the ranges of formats from core (1.0), core versions (1.1+), and extensions
def findFormatRanges(self):
Expand Down
Loading
Loading