mesa/src/vulkan/util
Lionel Landwerlin 9af7506370 vulkan/util: generate define for a selected few enums
One of the unfortunate effect of Vulkan starting to use 64bit bitmasks
is that they can no longer be defined using enums because C doesn't
guarantees that enum values will be 64bits.

Vulkan therefore started using those patterns :

  static const VkAccessFlags2KHR VK_ACCESS_2_INDIRECT_COMMAND_READ_BIT_KHR = 0x00000001;

This has the effect that we can not longer use those values in
switch/case statements.

This change introduces defines so that we can keep doing this. For now
only VkAccessFlags2KHR/VkPipelineStageFlags2KHR are allowed to be
redefined this way, this list could be changed later (or all bitmask
could be processed this way).

v2: Generate hexadecimal numbers (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9045>
2021-10-06 20:22:37 +00:00
..
gen_enum_to_str.py vulkan/util: generate define for a selected few enums 2021-10-06 20:22:37 +00:00
meson.build vulkan: put generated defines into their own header 2021-10-06 20:22:37 +00:00
vk_alloc.c vulkan/util: add vk_default_allocator 2021-06-03 08:13:26 +00:00
vk_alloc.h vulkan/util: Cast vk_alloc pointers 2021-09-29 17:42:17 +00:00
vk_cmd_copy.c vulkan: add common entrypoints for sparse image requirements/properties 2021-09-02 10:56:39 +00:00
vk_cmd_queue_gen.py vulkan: Copy pNext structures when enqueuing commands 2021-09-03 07:33:21 +02:00
vk_command_buffer.c vulkan: Implement VK_EXT_debug_utils 2021-09-23 21:14:32 +00:00
vk_command_buffer.h vulkan: Implement VK_EXT_debug_utils 2021-09-23 21:14:32 +00:00
vk_commands_gen.py Revert "lavapipe: unbreak imageless framebuffer" 2021-09-03 07:33:21 +02:00
vk_debug_report.c vulkan: fix use-after-free in vk_common_DestroyDebugReportCallbackEXT 2021-04-29 14:06:49 +00:00
vk_debug_report.h vulkan: Make the debug_report implementation internal 2021-02-01 18:54:25 +00:00
vk_debug_utils.c vulkan: Implement VK_EXT_debug_utils 2021-09-23 21:14:32 +00:00
vk_debug_utils.h vulkan: Implement VK_EXT_debug_utils 2021-09-23 21:14:32 +00:00
vk_deferred_operation.c vulkan/lavapipe: add missing VKAPI_ATTR/CALL 2021-02-09 19:21:03 +00:00
vk_deferred_operation.h anv,radv: Use common entrypoints for VK_KHR_deferred_operation 2021-02-01 18:54:25 +00:00
vk_descriptors.c vulkan: Fix descriptor set creation with zero bindings. 2021-03-29 23:32:50 +00:00
vk_descriptors.h vulkan: Fix descriptor set creation with zero bindings. 2021-03-29 23:32:50 +00:00
vk_device.c vulkan/physical_device_features: Stop generating a header 2021-10-04 22:42:32 +00:00
vk_device.h vulkan/device: Add a common GetDeviceQueue2 implementation 2021-09-28 21:08:25 +00:00
vk_dispatch_table_gen.py vulkan: Read len attribute of parameters to functions 2021-09-01 01:05:22 +00:00
vk_entrypoints_gen.py python: drop explicit output_encoding='utf-8' in mako templates 2021-08-14 21:44:32 +00:00
vk_extensions.py vulkan: Update the XML and headers to 1.2.193 2021-09-24 17:55:10 +00:00
vk_extensions_gen.py vulkan: Track dependencies of Python imports 2021-04-08 14:15:54 +00:00
vk_format.c anv: Move vk_format helpers to common code 2021-03-10 18:17:31 +00:00
vk_format.h turnip: implement basic perfetto support 2021-09-10 14:58:28 +03:00
vk_icd_gen.py anv,vulkan: Move anv_icd.py to a common location 2021-02-04 20:02:12 +00:00
vk_image.c vulkan: handle new VK_KHR_synchronization2 image layouts 2021-10-06 20:22:37 +00:00
vk_image.h anv,vulkan: Add a vk_image::wsi_legacy_scanout bit 2021-08-17 21:29:35 +00:00
vk_instance.c vulkan: Implement VK_EXT_debug_utils 2021-09-23 21:14:32 +00:00
vk_instance.h vulkan: Implement VK_EXT_debug_utils 2021-09-23 21:14:32 +00:00
vk_log.c vulkan: Add convenience debug message helpers 2021-09-23 21:14:32 +00:00
vk_log.h vulkan: Add convenience debug message helpers 2021-09-23 21:14:32 +00:00
vk_object.c vulkan: Add convenience debug message helpers 2021-09-23 21:14:32 +00:00
vk_object.h vulkan: Add convenience debug message helpers 2021-09-23 21:14:32 +00:00
vk_physical_device.c vulkan: add common entrypoints for sparse image requirements/properties 2021-09-02 10:56:39 +00:00
vk_physical_device.h vulkan/physical_device_features: Stop generating a header 2021-10-04 22:42:32 +00:00
vk_physical_device_features.py vulkan/physical_device_features: Stop generating a header 2021-10-04 22:42:32 +00:00
vk_queue.c vulkan/device: Add a common GetDeviceQueue2 implementation 2021-09-28 21:08:25 +00:00
vk_queue.h vulkan/device: Add a common GetDeviceQueue2 implementation 2021-09-28 21:08:25 +00:00
vk_render_pass.c vulkan: add common entrypoints for VK_KHR_create_renderpass2 2021-03-24 11:21:53 +00:00
vk_shader_module.c vk/util: add unified shader module struct/functions 2021-03-15 21:47:44 +00:00
vk_shader_module.h vulkan/shader_module: Fix the lifetime of temporary shader modules 2021-09-29 23:27:52 +00:00
vk_util.c vulkan: add vk_spec_info_to_nir_spirv util method 2021-07-29 03:28:52 +00:00
vk_util.h vulkan: add common entrypoints for sparse image requirements/properties 2021-09-02 10:56:39 +00:00