mesa/src/panfrost
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
..
bifrost pan/bi: Teach meson about format pack tests 2021-07-28 22:16:14 +00:00
ds pps: Panfrost pps driver 2021-07-13 11:03:55 +00:00
include panfrost: Rename G52 product ID 0x7402 as G52r1 2021-05-21 19:05:07 +00:00
lib panfrost: Add a concatenation macro for genxml 2021-07-23 20:12:18 +00:00
midgard pan/mdg: Garbage collect silly quirk 2021-07-23 15:53:57 +00:00
perf panfrost: Fix GPU ID for t76x in get_perf_config 2021-07-12 09:07:48 +00:00
shared util: Add helgrind support for simple_mtx 2020-11-24 21:03:34 +00:00
util panfrost: Only upload UBOs when needed 2021-07-03 13:23:29 +00:00
vulkan vulkan: add vk_spec_info_to_nir_spirv util method 2021-07-29 03:28:52 +00:00
meson.build panfrost: Only build libpanfrost with GL/VK 2021-07-22 17:55:49 +00:00