spirv: handle SpvOpMemberName

Now we can see field names in structs instead of generic
"fieldN" with NIR_PRINT=1.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13941>
This commit is contained in:
Marcin Ślusarz
2021-11-24 12:09:51 +01:00
committed by Marge Bot
parent 8e568d3f00
commit 4f58cc82e2
3 changed files with 41 additions and 10 deletions

View File

@@ -1272,11 +1272,11 @@ Test:SpvParserTest_Impl_GenericVulkanShader_GLSL450MemoryModel.spvasm:main|GLCom
Test:SpvParserTest_Impl_GenericVulkanShader_SimpleMemoryModel.spvasm:main|GLCompute: Pass
Test:SpvParserTest_Impl_GenericVulkanShader_VulkanMemoryModel.spvasm:main|GLCompute: Fail
SPIR-V WARNING:
In file ../src/compiler/spirv/spirv_to_nir.c:4663
In file ../src/compiler/spirv/spirv_to_nir.c:4687
Unsupported SPIR-V capability: SpvCapabilityVulkanMemoryModel (5345)
28 bytes into the SPIR-V binary
SPIR-V parsing FAILED:
In file ../src/compiler/spirv/spirv_to_nir.c:4817
In file ../src/compiler/spirv/spirv_to_nir.c:4841
Vulkan memory model is unsupported by this driver
68 bytes into the SPIR-V binary
Compilation failed