spirv,radv,anv: implement no-op VK_GOOGLE_user_type
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 May 2020 08:21:27 +0000 (10:21 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 May 2020 15:30:24 +0000 (17:30 +0200)
commit10c4a7cf59733ae2058a76b880ea0767a59dad4f
tree4fbfeb93521dbd711d07ff3c6b80821ccc61887e
parent01ce7887bf0d6ec4619e1851002d4774aaa28a90
spirv,radv,anv: implement no-op VK_GOOGLE_user_type

This extension only allows HLSL shader compilers to optionally embed
unambiguous type information which can be safely ignored by the driver.

This fixes a crash with the recent Vulkan backend of Path Of Exile
(it uses the extension without checking if it's supported).

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5237>
docs/relnotes/new_features.txt
src/amd/vulkan/radv_extensions.py
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c
src/intel/vulkan/anv_extensions.py