Write gl_PointSize in depth tests
authorziga-lunarg <ziga@lunarg.com>
Sun, 4 Dec 2022 20:48:26 +0000 (21:48 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 8 Dec 2022 18:01:25 +0000 (18:01 +0000)
Some depth tests use VK_PRIMITIVE_TOPOLOGY_POINT_LIST but the shaders
don't write the point size

Components: Vulkan

VK-GL-CTS issue: 4153

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

Change-Id: Idaa9ea65f7c43ca02d7780d1825d4558b712a133

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

index c715290c85de7287efa21133e4573ba0ae5afcb8..112bbb70604946ba187015d11853c80fcbcf80c7 100644 (file)
@@ -286,6 +286,7 @@ void DepthTest::initPrograms (SourceCollections& programCollection) const
                        "void main (void)\n"
                        "{\n"
                        "       gl_Position = position;\n"
+                       "       gl_PointSize = 1.0f;\n"
                        "}\n");
        }