Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Validation Layer warning for geometry shaders with the VK_NV_geometry_shader_passthrough extension enabled #2661

Open
neXyon opened this issue May 9, 2018 · 4 comments
Assignees
Labels

Comments

@neXyon
Copy link

neXyon commented May 9, 2018

I get the warning

Object: VK_NULL_HANDLE (Type = 0) | SPIR-V module not valid: Invalid decoration operand: 5250

during the call to vkCreateShaderModule when I use a geometry shader with

#extension GL_NV_geometry_shader_passthrough : enable

and I have the extension VK_NV_geometry_shader_passthrough enabled. The compiled shader then contains the PassthroughNV (5250) decoration in accordance with https://www.khronos.org/registry/spir-v/specs/1.0/SPIRV.pdf which is seen as invalid.

Everything works fine, but the warning shouldn't be there, since I do everything according to the specification.

I'm not sure if I should report this here or at https://github.com/KhronosGroup/SPIRV-Tools since the spvValidate function from there is producing the actual error message. Let me know if I should rather open an issue at SPIRV-Tools.

@neXyon neXyon changed the title Validation Layer error for geometry shaders with the VK_NV_geometry_shader_passthrough extension enabled Validation Layer warning for geometry shaders with the VK_NV_geometry_shader_passthrough extension enabled May 9, 2018
@tobine
Copy link
Contributor

tobine commented May 9, 2018

Ping @chrisforbes, should this go to SPIRV-Tool repo?

@chrisforbes
Copy link
Collaborator

Yes, this needs a bug filed in SPIRV-Tools.. we'll likely have some tidying up in LVL to do after SPIRV-Tools fixes their side though, so keep this bug open also.

@neXyon
Copy link
Author

neXyon commented May 9, 2018

Ok, I opened an issue there as well: KhronosGroup/SPIRV-Tools#1553

@neXyon
Copy link
Author

neXyon commented May 11, 2018

The issue in SPIRV-Tools has been fixed already.

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

No branches or pull requests

3 participants