Support GL 4.5 in geometry/tesselation shader tests
authorAlexander Galazin <alexander.galazin@arm.com>
Mon, 14 Dec 2020 13:31:20 +0000 (14:31 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 29 Dec 2020 14:49:27 +0000 (14:49 +0000)
Components: AOSP

Affects:
dEQP-GLES3*.functional.shaders.*

Change-Id: Ia97075a0ad973307bc7b04d15e7efda0996c31e2

modules/glshared/glsShaderExecUtil.cpp

index 16d8d03..ff6dccb 100644 (file)
@@ -746,7 +746,8 @@ private:
 
 GeometryShaderExecutor* GeometryShaderExecutor::create (const glu::RenderContext& renderCtx, const ShaderSpec& shaderSpec)
 {
-       if (glu::glslVersionIsES(shaderSpec.version) && shaderSpec.version <= glu::GLSL_VERSION_310_ES)
+       if (glu::glslVersionIsES(shaderSpec.version) && shaderSpec.version <= glu::GLSL_VERSION_310_ES
+               && !contextSupports(renderCtx.getType(), glu::ApiType::core(4, 5)))
                checkExtension(renderCtx, "GL_EXT_geometry_shader");
 
        return new GeometryShaderExecutor(renderCtx, shaderSpec);
@@ -1257,7 +1258,8 @@ void checkTessSupport (const glu::RenderContext& renderCtx, const ShaderSpec& sh
 {
        const int numBlockRequired = 2; // highest binding is always 1 (output) i.e. count == 2
 
-       if (glu::glslVersionIsES(shaderSpec.version) && shaderSpec.version <= glu::GLSL_VERSION_310_ES)
+       if (glu::glslVersionIsES(shaderSpec.version) && shaderSpec.version <= glu::GLSL_VERSION_310_ES
+               && !contextSupports(renderCtx.getType(), glu::ApiType::core(4, 5)))
                checkExtension(renderCtx, "GL_EXT_tessellation_shader");
 
        if (stage == glu::SHADERTYPE_TESSELLATION_CONTROL)