Fix shader interface mismatch in pipeline cache tests
authorziga-lunarg <ziga@lunarg.com>
Mon, 6 Mar 2023 14:07:02 +0000 (15:07 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Thu, 16 Mar 2023 16:45:58 +0000 (16:45 +0000)
Geometry shaders declared gl_PerVertex input, but the vertex shader does
not have such an output

Components: Vulkan

VK-GL-CTS issue: 4320

Affected tests:
dEQP-VK.pipeline.cache.*

Change-Id: Iaf5d567295f6216848663a28696f8b7dddb71020

external/vulkancts/modules/vulkan/pipeline/vktPipelineCacheTests.cpp

index f1a10dc..63ac226 100644 (file)
@@ -659,10 +659,11 @@ void GraphicsCacheTest::initPrograms (SourceCollections& programCollection) cons
                        {
                                case VK_SHADER_STAGE_VERTEX_BIT:
                                        programCollection.glslSources.add("color_vert" + missSuffix) << glu::VertexSource(
-                                               "#version 310 es\n"
+                                               "#version 450\n"
                                                "layout(location = 0) in vec4 position;\n"
                                                "layout(location = 1) in vec4 color;\n"
                                                "layout(location = 0) out highp vec4 vtxColor;\n"
+                                               "out gl_PerVertex { vec4 gl_Position; };\n"
                                                "void main (void)\n"
                                                "{\n"
                                                "  gl_Position = position;\n"