Check for tessellation/geometry extensions being exposed am: 573154bb7b
authorAlexander Galazin <alexander.galazin@arm.com>
Wed, 16 Aug 2017 00:41:06 +0000 (00:41 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Wed, 16 Aug 2017 00:41:06 +0000 (00:41 +0000)
am: f79e5f07b3

Change-Id: I3a2713fb0e10929d2b326443ab82beeed61df85e

modules/gles31/functional/es31fNegativeSampleVariablesTests.cpp

index ea68a5a..54b77da 100644 (file)
@@ -137,6 +137,12 @@ void access_built_in_types_inside_other_shaders (NegativeTestContext& ctx)
 {
        checkSupported(ctx);
 
+       if ((!ctx.isExtensionSupported("GL_EXT_tessellation_shader") && !ctx.isExtensionSupported("GL_OES_tessellation_shader")) ||
+               (!ctx.isExtensionSupported("GL_EXT_geometry_shader") && !ctx.isExtensionSupported("GL_OES_geometry_shader")))
+       {
+               TCU_THROW(NotSupportedError, "tessellation and geometry shader extensions not supported");
+       }
+
        std::ostringstream      shader;
 
        struct testConfig
@@ -356,4 +362,4 @@ std::vector<FunctionContainer> getNegativeSampleVariablesTestFunctions (void)
 } // NegativeTestShared
 } // Functional
 } // gles31
-} // deqp
\ No newline at end of file
+} // deqp