From 52b7de31e0bccf62ca28d820f4dc2d0d52793aa8 Mon Sep 17 00:00:00 2001 From: Marcin Rogucki Date: Wed, 25 Oct 2017 13:33:44 +0200 Subject: [PATCH] gl_PrimitiveIDIn tests have sketchy loop bounds. Components: Vulkan VK-GL-CTS issue: 778 Updates: dEQP-VK.geometry.basic.primitive_id_in dEQP-VK.geometry.basic.primitive_id_in_restarted Change-Id: Icd2be56814de18067ce058a5f2a1da80338f80d6 --- .../geometry/vktGeometryBasicGeometryShaderTests.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp b/external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp index 4508bb96f..3afe6359b 100644 --- a/external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp +++ b/external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp @@ -1035,12 +1035,13 @@ void BuiltinVariableRenderTest::initPrograms (SourceCollections& sourceCollectio << " const vec4 blue = vec4(0.0, 0.0, 1.0, 1.0);\n" << " const vec4 yellow = vec4(1.0, 1.0, 0.0, 1.0);\n" << " const vec4 colors[4] = vec4[4](red, green, blue, yellow);\n" - << " for (float percent=0.00; percent < 0.30; percent+=0.10)\n" - "{\n" - << " gl_Position = gl_in[0].gl_Position * vec4(1.0+percent, 1.0+percent, 1.0, 1.0);\n" + << " for (int counter = 0; counter < 3; ++counter)\n" + << " {\n" + << " float percent = 0.1 * counter;\n" + << " gl_Position = gl_in[0].gl_Position * vec4(1.0 + percent, 1.0 + percent, 1.0, 1.0);\n" << " v_frag_FragColor = colors[gl_PrimitiveIDIn % 4];\n" << " EmitVertex();\n" - << " gl_Position = gl_in[1].gl_Position * vec4(1.0+percent, 1.0+percent, 1.0, 1.0);\n" + << " gl_Position = gl_in[1].gl_Position * vec4(1.0 + percent, 1.0 + percent, 1.0, 1.0);\n" << " v_frag_FragColor = colors[gl_PrimitiveIDIn % 4];\n" << " EmitVertex();\n" << " }\n" -- 2.34.1