KhronosGroup / Vulkan-LoaderAndValidationLayers

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

Fix unexpected error in CreatePipelineCheckShaderCapabilityExtension2of2 #2645

Open chrisforbes opened 6 years ago

chrisforbes commented 6 years ago
[ RUN      ] VkPositiveLayerTest.CreatePipelineCheckShaderCapabilityExtension2of2
Unexpected: Object: VK_NULL_HANDLE (Type = 0) | SPIR-V module not valid: Vulkan spec allows BuiltIn ViewportIndex to be used only with Fragment or Geometry execution models. ID <0> (OpStore) is referencing ID <8> (OpVariable) which is decorated with BuiltIn ViewportIndex in function <4> called with execution model Vertex.

This may be a limitation of the current SPIRV-Tools, but needs some investigation.

chrisforbes commented 6 years ago

This shader needs to express the ShaderViewportIndexLayerNV capability, which it doesn't.