mesa/src/amd
Alejandro Piñeiro 476dc3c050 vulkan: add vk_spec_info_to_nir_spirv util method
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>
2021-07-29 03:28:52 +00:00
..
addrlib amd/addrlib: remove Meson debug message() 2021-06-22 23:47:19 +00:00
ci Revert "CI: Disable LAVA devices" 2021-07-22 08:42:40 +01:00
common radv, aco, ac/nir: Tweak position export scheduling for NGG culling. 2021-07-13 23:56:33 +00:00
compiler aco: implement VK_EXT_shader_atomic_float2 2021-07-27 08:44:31 +02:00
llvm amd: Don't handle nir_tex_src_ms_mcs 2021-07-23 15:53:57 +00:00
registers amd/registers: regenerate json files without 32-bit register fields 2021-05-25 16:15:44 +00:00
vulkan vulkan: add vk_spec_info_to_nir_spirv util method 2021-07-29 03:28:52 +00:00
.clang-format radv: Add clang-format for AMD code. 2021-04-10 03:31:32 +02:00
meson.build aco: add framework for unit testing 2020-07-30 16:13:08 +00:00