GL_ARB_compute_shader required for OpenGL < 4.3
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 6 Nov 2017 18:50:28 +0000 (19:50 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 10 Nov 2017 12:02:00 +0000 (07:02 -0500)
GL_ARB_compute_shader is part of OpenGL 4.3 and above.

For older versions, it is required to enable it explicitly.

Fixes:
KHR-GL31.CommonBugs.CommonBug_ParenthesisInLayoutQualifierIntegerValue
KHR-GL32.CommonBugs.CommonBug_ParenthesisInLayoutQualifierIntegerValue
KHR-GL33.CommonBugs.CommonBug_ParenthesisInLayoutQualifierIntegerValue
KHR-GL40.CommonBugs.CommonBug_ParenthesisInLayoutQualifierIntegerValue
KHR-GL41.CommonBugs.CommonBug_ParenthesisInLayoutQualifierIntegerValue
KHR-GL42.CommonBugs.CommonBug_ParenthesisInLayoutQualifierIntegerValue

Components: OpenGL

VK-GL-CTS issue: 818

Change-Id: I8e7ab78e29861547f0379feebce0375e1dabf47c

external/openglcts/modules/gl/gl3cCommonBugsTests.cpp

index d15ab8d..4b1a33b 100644 (file)
@@ -1511,7 +1511,8 @@ tcu::TestNode::IterateResult ParenthesisInLayoutQualifierIntegerValuesTest::iter
                                                                          "}\n";
 
        const char* cs_body_parts[] = { (!glu::contextSupports(context_type, glu::ApiType::core(4, 3))) ?
-                                                                               "#version 420 core\n" :
+                                                                               "#version 420 core\n"
+                                                                               "#extension GL_ARB_compute_shader : enable\n" :
                                                                                (!glu::contextSupports(context_type, glu::ApiType::core(4, 4))) ?
                                                                                "#version 430 core\n" :
                                                                                "#version 440 core\n",