From: Marcin Rogucki Date: Wed, 25 Oct 2017 11:33:44 +0000 (+0200) Subject: gl_PrimitiveIDIn tests have sketchy loop bounds. X-Git-Tag: upstream/1.3.5~2565^2~5^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbf9fbb79a3823869027e867df928c2efe91c463;p=platform%2Fupstream%2FVK-GL-CTS.git 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 (cherry picked from commit 52b7de31e0bccf62ca28d820f4dc2d0d52793aa8) --- diff --git a/external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp b/external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp index 4508bb9..3afe635 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"