Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glslangValidator generates invalid SPIR-V #2509

Closed
VadikLeshy opened this issue Jan 21, 2021 · 2 comments
Closed

glslangValidator generates invalid SPIR-V #2509

VadikLeshy opened this issue Jan 21, 2021 · 2 comments

Comments

@VadikLeshy
Copy link

glslang version: 11.1.0 either master
shaders sample: https://gitlab.com/KawaiiGraphics/KawaiiGenerated_GLSL

glslangValidator -V -o ./frag.spv ./*.frag.glsl
./FragmentMain.frag.glsl
./LampSignatures_PBR.frag.glsl
./PbrIlluminationCore.frag.glsl
./PBR_illumination.frag.glsl
spirv-val ./frag.spv 
error: line 491: ID 70[%normal_frag] has not been defined
  OpStore %normal_frag %225

SIGSEGV when attempt to use resulting SPIR-V in vulkan

@VadikLeshy
Copy link
Author

VadikLeshy commented Jan 26, 2021

This pull request fixes the issue on my system: #2458

@greg-lunarg
Copy link
Contributor

#2458 merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants