Skip to content

Commit

Permalink
profiles: Update to header 296
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg committed Sep 26, 2024
1 parent a501be7 commit baf06ff
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/gen_profiles_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3033,7 +3033,7 @@ def generate_helpers(self):

gen += self.generate_string_to_image_layout(registry.enums['VkImageLayout'].values)

gen += self.generate_string_to_uint(('VkToolPurposeFlagBits', 'VkSampleCountFlagBits', 'VkResolveModeFlagBits', 'VkShaderStageFlagBits', 'VkSubgroupFeatureFlagBits', 'VkShaderFloatControlsIndependence', 'VkPointClippingBehavior', 'VkOpticalFlowGridSizeFlagBitsNV', 'VkQueueFlagBits', 'VkMemoryDecompressionMethodFlagBitsNV', 'VkLayeredDriverUnderlyingApiMSFT', 'VkImageUsageFlagBits', 'VkBufferUsageFlagBits', 'VkPhysicalDeviceSchedulingControlsFlagBitsARM'), registry.enums)
gen += self.generate_string_to_uint(('VkToolPurposeFlagBits', 'VkSampleCountFlagBits', 'VkResolveModeFlagBits', 'VkShaderStageFlagBits', 'VkSubgroupFeatureFlagBits', 'VkShaderFloatControlsIndependence', 'VkPointClippingBehavior', 'VkOpticalFlowGridSizeFlagBitsNV', 'VkQueueFlagBits', 'VkMemoryDecompressionMethodFlagBitsNV', 'VkLayeredDriverUnderlyingApiMSFT', 'VkImageUsageFlagBits', 'VkBufferUsageFlagBits', 'VkPhysicalDeviceSchedulingControlsFlagBitsARM', 'VkIndirectCommandsInputModeFlagBitsEXT'), registry.enums)

gen += self.generate_string_to_flag_functions(('VkFormatFeatureFlags', 'VkQueueFlags', 'VkQueueGlobalPriorityKHR', 'VkVideoCodecOperationFlagsKHR', 'VkPipelineStageFlags', 'VkPipelineStageFlags2', 'VkFormatFeatureFlags2'))

Expand Down
6 changes: 6 additions & 0 deletions scripts/gen_profiles_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -3292,6 +3292,12 @@ def applyWorkarounds(self):
if 'VkPhysicalDeviceMaintenance6PropertiesKHR' in self.structs:
self.structs['VkPhysicalDeviceMaintenance6PropertiesKHR'].members['maxCombinedImageSamplerDescriptorCount'].limittype = 'max'

if 'VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT' in self.structs:
self.structs['VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT'].members['supportedIndirectCommandsInputModes'].limittype = 'bitmask'
self.structs['VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT'].members['supportedIndirectCommandsShaderStages'].limittype = 'bitmask'
self.structs['VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT'].members['supportedIndirectCommandsShaderStagesPipelineBinding'].limittype = 'bitmask'
self.structs['VkPhysicalDeviceDeviceGeneratedCommandsPropertiesEXT'].members['supportedIndirectCommandsShaderStagesShaderBinding'].limittype = 'bitmask'

# TODO: The registry xml is also missing limittype definitions for format and queue family properties
# For now we just add the important ones, this needs a larger overhaul in the vk.xml
self.structs['VkFormatProperties'].members['linearTilingFeatures'].limittype = 'bitmask'
Expand Down
5 changes: 5 additions & 0 deletions scripts/gen_profiles_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ def gen_properties(self, extensions, registry):
gen += enum[0]
self.test_values[name][property] = enum[1]
self.i += 1
elif property_type == "VkIndirectCommandsInputModeFlagsEXT":
enum = self.get_enum('VkIndirectCommandsInputModeFlagBitsEXT', True)
gen += enum[0]
self.test_values[name][property] = enum[1]
self.i += 1
elif property_type == "char":
gen += "\""
gen += property_name
Expand Down
4 changes: 2 additions & 2 deletions scripts/known_good.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"cmake_options": [
"-DVULKAN_HEADERS_ENABLE_MODULE=OFF"
],
"commit": "v1.3.295"
"commit": "v1.3.296"
},
{
"name": "Vulkan-Utility-Libraries",
"url": "https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git",
"sub_dir": "Vulkan-Utility-Libraries",
"build_dir": "Vulkan-Utility-Libraries/build",
"install_dir": "Vulkan-Utility-Libraries/build/install",
"commit": "v1.3.295",
"commit": "v1.3.296",
"deps": [
{
"var_name": "VULKAN_HEADERS_INSTALL_DIR",
Expand Down

0 comments on commit baf06ff

Please sign in to comment.