mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 11:48:05 +02:00
All vulkan drivers have been copying anv's code to convert
VkSpecializationInfo into nir_spirv_specialization.
Recently there was a Vulkan spec change on allowed values for
VkSpecializationInfo, and all drivers got affected.
This commits creates a new helper, and uses it on all Vulkan Mesa
drivers.
v2: use (uint8_t*) castings, instead of void*, to avoid C2036 with
MSVC (detected by the CI, inspired on what radv was doing)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12047>
|
||
|---|---|---|
| .. | ||
| gen_enum_to_str.py | ||
| meson.build | ||
| vk_alloc.c | ||
| vk_alloc.h | ||
| vk_cmd_copy.c | ||
| vk_debug_report.c | ||
| vk_debug_report.h | ||
| vk_deferred_operation.c | ||
| vk_deferred_operation.h | ||
| vk_descriptors.c | ||
| vk_descriptors.h | ||
| vk_device.c | ||
| vk_device.h | ||
| vk_dispatch_table_gen.py | ||
| vk_entrypoints_gen.py | ||
| vk_extensions.py | ||
| vk_extensions_gen.py | ||
| vk_format.c | ||
| vk_format.h | ||
| vk_icd_gen.py | ||
| vk_instance.c | ||
| vk_instance.h | ||
| vk_object.c | ||
| vk_object.h | ||
| vk_physical_device.c | ||
| vk_physical_device.h | ||
| vk_render_pass.c | ||
| vk_shader_module.c | ||
| vk_shader_module.h | ||
| vk_util.c | ||
| vk_util.h | ||