mesa/src/vulkan/util
Alyssa Rosenzweig e331efd4fe vulkan: add common VK_PRINT_STR/VK_COPY_STR macros
every vk driver wants these macros for executable statistics, so make them
common. there are two variants floating in-tree, a pure copy (radv) and a
formatted print (everyone else). we add both variants and then convert most
prints to copies where formatting isn't actually used. that has the benefit of
cleaning up trivial "%s" format strings in a bunch of places.

I didn't bother cleaning up the formatting in non-automatic-formatted drivers
because it's tedious and I'm planning to delete a lot of this driver code with
upcoming runtime work anyway. This is a step towards those runtime improvements.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33826>
2025-03-01 20:27:26 +00:00
..
gen_enum_to_str.py vk/enum2str: add more max enum vendors 2023-09-13 18:57:42 +00:00
meson.build meson: reuse variable 2024-11-26 20:45:41 +00:00
vk_alloc.c vulkan/util: assume c11 2022-06-14 15:08:37 +00:00
vk_alloc.h vulkan/multialloc: bump max number to 16 2024-02-01 13:20:21 +00:00
vk_cmd_queue_gen.py vulkan/cmd_queue: Add VK_CMD_TYPE_COUNT 2025-02-15 09:55:52 +00:00
vk_dispatch_table_gen.py vulkan/dispatch_table: add an uncompacted version of the table 2024-02-29 11:18:18 +00:00
vk_dispatch_trampolines_gen.py mesa/vulkan: use a simpler path for header in trampoline gen 2024-01-18 18:45:40 +00:00
vk_entrypoints.py vulkan: write beta extensions into generator scripts. 2023-05-04 02:40:06 +00:00
vk_entrypoints_gen.py vk_entrypoints_gen: Apply hidden visibility to generated symbols 2024-07-05 14:40:39 +00:00
vk_extensions.py vulkan: Allow the same item to show up twice in core version <requires> 2024-12-02 17:22:49 +00:00
vk_extensions_gen.py vulkan/util: drop redundant code gen from vk_extensions_gen.py 2024-02-01 19:29:48 +00:00
vk_format.c treewide: Stop putting enum in front of Vulkan enum types 2024-12-02 17:22:49 +00:00
vk_format.h treewide: Stop putting enum in front of Vulkan enum types 2024-12-02 17:22:49 +00:00
vk_icd_gen.py vk/util: print a nice error in vk_icd_gen.py when VK_HEADER_VERSION is not defined 2024-02-29 14:25:49 +00:00
vk_physical_device_features_gen.py vulkan: filter duplicate pNext struct at device creation 2025-02-25 16:55:03 +00:00
vk_physical_device_properties_gen.py vulkan/util: clean up copy_property and fix for setter 2025-02-26 19:16:48 +00:00
vk_physical_device_spirv_caps_gen.py vulkan: add helper to fill out spirv caps automatically 2024-05-09 01:14:22 +00:00
vk_struct_type_cast_gen.py vulkan: write beta extensions into generator scripts. 2023-05-04 02:40:06 +00:00
vk_synchronization_helpers_gen.py vulkan: Handle group stages in vk_.*_access2_for_pipeline_stage_flags2 2024-06-28 10:41:49 +00:00
vk_util.c vulkan: Avoid pointer aliasing 2024-11-16 03:14:31 +00:00
vk_util.h vulkan: add common VK_PRINT_STR/VK_COPY_STR macros 2025-03-01 20:27:26 +00:00