KhronosGroup / Vulkan-LoaderAndValidationLayers

**Deprecated repository** for Vulkan loader and validation layers
Apache License 2.0
414 stars 172 forks source link

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

Open neXyon opened 6 years ago

neXyon commented 6 years ago

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.

tobine commented 6 years ago

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

chrisforbes commented 6 years ago

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 commented 6 years ago

Ok, I opened an issue there as well: https://github.com/KhronosGroup/SPIRV-Tools/issues/1553

neXyon commented 6 years ago

The issue in SPIRV-Tools has been fixed already.