Hello,
I have a shader compiled to SPIR-V without validation errors on my linux laptop. The shader also runs without issues on the system as part of my vulkan app.
It is my understanding that SPIR-V is standardized and GLSL compilation is not required on the target system itself if the driver supports it (which I assumed given that it gave me no error that indicated so). I compiled for Vulkan Level 1.1.
Yet the target tablet gives me the following error:
2021-09-26 16:28:50.271 2207-2250/sdl.vulkan I/AdrenoVK-0: Shader compilation failed for shaderType: 0
2021-09-26 16:28:50.271 2207-2250/sdl.vulkan I/AdrenoVK-0: Info log: Internal compiler error: Invalid SPIR-V module: ID bound
No online search whatsoever yielded a satisfactory result that would help me, nor did the validation layer tell me anything useful in regards to shading...
Here is a another dump that contains the driver version and some more potentially useful stuff:
2021-09-26 16:28:47.973 2207-2250/sdl.vulkan D/vulkan: searching for layers in '/data/app/sdl.vulkan-Zu3FuHtFgUV_njEAvS0XNA==/lib/arm64'
2021-09-26 16:28:47.973 2207-2250/sdl.vulkan D/vulkan: searching for layers in '/data/app/sdl.vulkan-Zu3FuHtFgUV_njEAvS0XNA==/base.apk!/lib/arm64-v8a'
2021-09-26 16:28:47.973 2207-2207/sdl.vulkan W/SDLThread: type=1400 audit(0.0:4327): avc: granted { execute } for path="/data/data/sdl.vulkan/libVkLayer_adreno.so" dev="dm-9" ino=17695 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file
2021-09-26 16:28:47.988 2207-2250/sdl.vulkan I/vulkan: Loaded layer VK_LAYER_ADRENO_debug
2021-09-26 16:28:47.988 2207-2250/sdl.vulkan I/VkAdrenoDebugLayer: Found a VkAdrenoDebugLayer Settings File: /data/local/tmp/vkal_config.txt
2021-09-26 16:28:47.995 2207-2250/sdl.vulkan I/AdrenoVK-0: QUALCOMM build : f4274a6, Ifa5c16ae44
Build Date : 08/11/20
Shader Compiler Version : EV031.29.00.16
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.0.r107-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
2021-09-26 16:28:47.995 2207-2250/sdl.vulkan I/AdrenoVK-0: Build Config : S P 8.0.16 AArch64
2021-09-26 16:28:47.995 2207-2250/sdl.vulkan I/AdrenoVK-0: Driver Path : /vendor/lib64/hw/vulkan.bengal.so
Hi,
Can you provide the shader (either as SPIR-V binary, or GLSL) that is failing to comple? It's entirely possible this is a driver / compiler bug, and if you provide the shader we may be able to offer some workaround that would let the shader successfully compile. We will also also fix the problem for future drivers, but that may not help you in the near term.
This issue should be resolved as it's attracting unrelated spam like the comment above that was copied from here: from: https://github.com/microsoft/DirectXShaderCompiler/issues/2643