Forums - How to validate SPIR-V on Adreno

2 posts / 0 new
Last post
How to validate SPIR-V on Adreno
w0wtiger
Join Date: 6 Jun 15
Posts: 4
Posted: Wed, 2017-08-16 04:15

Hello

We wrote a SPIR-V Generator, and passed Vulkan validator, rendering success.

https://gist.github.com/metora/5f653cc6664148f0915e71e6cc78cf1e

 

But I tried it on Adreno 530, It crash on libllvm-qgl.so

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Sony/F8132/F8132:7.0/39.2.A.0.417/1528746196:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 12879, tid: 12894, name: Thread-2  >>> com.android.cheetah <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
    r0 00000000  r1 00000000  r2 cc879400  r3 cc879500
    r4 ccb7cd00  r5 00000000  r6 00000004  r7 000004a0
    r8 00000001  r9 e9664368  sl cc07e060  fp ccb7cd00
    ip 0000007f  sp e96642f0  lr 00000020  pc d4c76cc0  cpsr 600f0030
 
backtrace:
    #00 pc 0089ecc0  /system/vendor/lib/libllvm-qgl.so
    #01 pc 0089faa1  /system/vendor/lib/libllvm-qgl.so
    #02 pc 008a594d  /system/vendor/lib/libllvm-qgl.so
    #03 pc 008a5d43  /system/vendor/lib/libllvm-qgl.so
    #04 pc 007afd47  /system/vendor/lib/libllvm-qgl.so
    #05 pc 0073a16b  /system/vendor/lib/libllvm-qgl.so
    #06 pc 007c23d9  /system/vendor/lib/libllvm-qgl.so (_Z21QGLCCompileToIRShaderPvP14QGLC_SRCSHADERP23QGLC_COMPIL
ETOIR_RESULT+40)
     #07 pc 0005d75d  /system/vendor/lib/hw/vulkan.msm8996.so (_ZN17QglShaderCompiler17CompileToIrShaderEPK10QglPro
gram14QglShaderStagePKcjS5_P23QGLC_COMPILETOIR_RESULT+280)
 
How to know what problem is this?
 
Thanks.
 
  • Up0
  • Down0
w0wtiger
Join Date: 6 Jun 15
Posts: 4
Posted: Fri, 2017-08-18 11:37

I fixed the problems.

I miss float and int convert, and wrong OpFMul.

It works now.

  • 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.