Forums - Shader Issue (valid SPIR-V)

3 posts / 0 new
Last post
Shader Issue (valid SPIR-V)
tespujekni
Join Date: 26 Sep 21
Posts: 1
Posted: Sun, 2021-09-26 08:05

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

 



 

  • Up0
  • Down0
jleger
Join Date: 23 Aug 16
Posts: 15
Posted: Wed, 2021-10-20 16:32

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.

 

  • Up0
  • Down0
jleger
Join Date: 23 Aug 16
Posts: 15
Posted: Wed, 2022-08-10 12:35

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

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.