Commit 2f23f35a by Yunchao He Committed by Commit Bot

Clean up end2end tests for Intel OSX.

BUG=angleproject:2205 BUG=angleproject:2041 BUG=angleproject:2155 Change-Id: I26bcbb63e147787cd342ec80a86d60cf230be4c9 Reviewed-on: https://chromium-review.googlesource.com/913108Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent e5fe7aad
...@@ -282,15 +282,6 @@ TEST_P(ClearTestES3, SRGBClear) ...@@ -282,15 +282,6 @@ TEST_P(ClearTestES3, SRGBClear)
// attachment // attachment
TEST_P(ClearTestES3, MixedSRGBClear) TEST_P(ClearTestES3, MixedSRGBClear)
{ {
// TODO(cwallez) figure out why it is broken on Intel on Mac
#if defined(ANGLE_PLATFORM_APPLE)
if (IsIntel() && getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE)
{
std::cout << "Test skipped on Intel on Mac." << std::endl;
return;
}
#endif
glBindFramebuffer(GL_FRAMEBUFFER, mFBOs[0]); glBindFramebuffer(GL_FRAMEBUFFER, mFBOs[0]);
GLuint textures[2]; GLuint textures[2];
......
...@@ -97,13 +97,6 @@ class FramebufferFormatsTest : public ANGLETest ...@@ -97,13 +97,6 @@ class FramebufferFormatsTest : public ANGLETest
GLenum attachmentType, GLenum attachmentType,
GLenum internalFormat) GLenum internalFormat)
{ {
// TODO(geofflang): Figure out why this is broken on Intel OpenGL
if (IsIntel() && getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE)
{
std::cout << "Test skipped on Intel OpenGL." << std::endl;
return;
}
int clientVersion = getClientMajorVersion(); int clientVersion = getClientMajorVersion();
if (clientVersion < minESVersion) if (clientVersion < minESVersion)
{ {
......
...@@ -2965,14 +2965,6 @@ TEST_P(GLSLTest, InitUninitializedStructContainingArrays) ...@@ -2965,14 +2965,6 @@ TEST_P(GLSLTest, InitUninitializedStructContainingArrays)
return; return;
} }
if (IsOSX() && IsOpenGL())
{
// http://anglebug.com/2041
std::cout << "Test skipped on Mac OpenGL because local variable initialization is disabled."
<< std::endl;
return;
}
const std::string &fragmentShader = const std::string &fragmentShader =
"precision mediump float;\n" "precision mediump float;\n"
"struct T\n" "struct T\n"
...@@ -3062,14 +3054,6 @@ TEST_P(GLSLTest_ES3, UninitializedNamelessStructInForInitStatement) ...@@ -3062,14 +3054,6 @@ TEST_P(GLSLTest_ES3, UninitializedNamelessStructInForInitStatement)
return; return;
} }
if (IsOSX() && IsOpenGL())
{
// http://anglebug.com/2041
std::cout << "Test skipped on Mac OpenGL because local variable initialization is disabled."
<< std::endl;
return;
}
const std::string &fragmentShader = const std::string &fragmentShader =
"#version 300 es\n" "#version 300 es\n"
"precision highp float;\n" "precision highp float;\n"
......
...@@ -174,15 +174,6 @@ TEST_P(PackUnpackTest, PackUnpackUnormNormal) ...@@ -174,15 +174,6 @@ TEST_P(PackUnpackTest, PackUnpackUnormNormal)
// Test the correctness of packHalf2x16 and unpackHalf2x16 functions calculating normal floating numbers. // Test the correctness of packHalf2x16 and unpackHalf2x16 functions calculating normal floating numbers.
TEST_P(PackUnpackTest, PackUnpackHalfNormal) TEST_P(PackUnpackTest, PackUnpackHalfNormal)
{ {
// TODO(cwallez) figure out why it is broken on Intel on Mac
#if defined(ANGLE_PLATFORM_APPLE)
if (IsIntel() && getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE)
{
std::cout << "Test skipped on Intel on Mac." << std::endl;
return;
}
#endif
// Expect the shader to output the same value as the input // Expect the shader to output the same value as the input
compareBeforeAfter(mHalfProgram, 0.5f, -0.2f); compareBeforeAfter(mHalfProgram, 0.5f, -0.2f);
compareBeforeAfter(mHalfProgram, -0.35f, 0.75f); compareBeforeAfter(mHalfProgram, -0.35f, 0.75f);
......
...@@ -286,11 +286,7 @@ TEST_P(SRGBTextureTest, GenerateMipmaps) ...@@ -286,11 +286,7 @@ TEST_P(SRGBTextureTest, GenerateMipmaps)
return; return;
} }
if (IsOpenGL() && (IsIntel() || IsAMD())) ANGLE_SKIP_TEST_IF(IsOpenGL() && ((IsIntel() && IsOSX()) || IsAMD()));
{
std::cout << "Test skipped on Intel and AMD OpenGL drivers." << std::endl;
return;
}
auto createAndReadBackTexture = [this](GLenum internalFormat, const GLColor &color) { auto createAndReadBackTexture = [this](GLenum internalFormat, const GLColor &color) {
constexpr GLsizei width = 128; constexpr GLsizei width = 128;
......
...@@ -140,13 +140,6 @@ class SwizzleTest : public ANGLETest ...@@ -140,13 +140,6 @@ class SwizzleTest : public ANGLETest
void runTest2D() void runTest2D()
{ {
// TODO(jmadill): Figure out why this fails on Intel.
if (IsIntel() && GetParam().getRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE)
{
std::cout << "Test skipped on Intel." << std::endl;
return;
}
glUseProgram(mProgram); glUseProgram(mProgram);
glBindTexture(GL_TEXTURE_2D, mTexture); glBindTexture(GL_TEXTURE_2D, mTexture);
glUniform1i(mTextureUniformLocation, 0); glUniform1i(mTextureUniformLocation, 0);
......
...@@ -1765,12 +1765,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeUndefined) ...@@ -1765,12 +1765,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeUndefined)
std::cout << "Test skipped on AMD OpenGL." << std::endl; std::cout << "Test skipped on AMD OpenGL." << std::endl;
return; return;
} }
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, mTexture2D); glBindTexture(GL_TEXTURE_2D, mTexture2D);
std::vector<GLColor> texDataGreen(2u * 2u, GLColor::green); std::vector<GLColor> texDataGreen(2u * 2u, GLColor::green);
...@@ -1797,12 +1791,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelZeroUndefined) ...@@ -1797,12 +1791,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelZeroUndefined)
std::cout << "Test skipped on AMD OpenGL." << std::endl; std::cout << "Test skipped on AMD OpenGL." << std::endl;
return; return;
} }
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, mTexture2D); glBindTexture(GL_TEXTURE_2D, mTexture2D);
std::vector<GLColor> texDataGreen(2u * 2u, GLColor::green); std::vector<GLColor> texDataGreen(2u * 2u, GLColor::green);
...@@ -1832,12 +1820,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelZeroUndefined) ...@@ -1832,12 +1820,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelZeroUndefined)
// GLES 3.0.4 section 3.8.13 Texture completeness // GLES 3.0.4 section 3.8.13 Texture completeness
TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions) TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions)
{ {
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, mTexture2D); glBindTexture(GL_TEXTURE_2D, mTexture2D);
std::vector<GLColor> texDataRed(8u * 8u, GLColor::red); std::vector<GLColor> texDataRed(8u * 8u, GLColor::red);
...@@ -1865,13 +1847,7 @@ TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions) ...@@ -1865,13 +1847,7 @@ TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions)
EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green);
if (IsIntel() && getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE) ANGLE_SKIP_TEST_IF(IsIntel() && IsWindows() && IsOpenGL());
{
// Intel was observed drawing color 0,0,0,0 instead of the texture color after the base
// level was changed.
std::cout << "Test partially skipped on Intel OpenGL." << std::endl;
return;
}
// Switch the level that is being used to the cyan level 2. // Switch the level that is being used to the cyan level 2.
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 2); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 2);
...@@ -1888,12 +1864,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions) ...@@ -1888,12 +1864,6 @@ TEST_P(Texture2DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions)
// have images defined. // have images defined.
TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeUndefined) TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeUndefined)
{ {
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_3D, mTexture3D); glBindTexture(GL_TEXTURE_3D, mTexture3D);
std::vector<GLColor> texDataGreen(2u * 2u * 2u, GLColor::green); std::vector<GLColor> texDataGreen(2u * 2u * 2u, GLColor::green);
...@@ -1916,12 +1886,6 @@ TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeUndefined) ...@@ -1916,12 +1886,6 @@ TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeUndefined)
// GLES 3.0.4 section 3.8.13 Texture completeness // GLES 3.0.4 section 3.8.13 Texture completeness
TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions) TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions)
{ {
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_3D, mTexture3D); glBindTexture(GL_TEXTURE_3D, mTexture3D);
std::vector<GLColor> texDataRed(8u * 8u * 8u, GLColor::red); std::vector<GLColor> texDataRed(8u * 8u * 8u, GLColor::red);
...@@ -1950,13 +1914,7 @@ TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions) ...@@ -1950,13 +1914,7 @@ TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions)
EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green);
if (IsIntel() && getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE) ANGLE_SKIP_TEST_IF(IsIntel() && IsWindows() && IsOpenGL());
{
// Intel was observed drawing color 0,0,0,0 instead of the texture color after the base
// level was changed.
std::cout << "Test partially skipped on Intel OpenGL." << std::endl;
return;
}
// Switch the level that is being used to the cyan level 2. // Switch the level that is being used to the cyan level 2.
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_BASE_LEVEL, 2); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_BASE_LEVEL, 2);
...@@ -1973,12 +1931,6 @@ TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions) ...@@ -1973,12 +1931,6 @@ TEST_P(Texture3DTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions)
// have images defined. // have images defined.
TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeUndefined) TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeUndefined)
{ {
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D_ARRAY, m2DArrayTexture); glBindTexture(GL_TEXTURE_2D_ARRAY, m2DArrayTexture);
std::vector<GLColor> texDataGreen(2u * 2u * 2u, GLColor::green); std::vector<GLColor> texDataGreen(2u * 2u * 2u, GLColor::green);
...@@ -2001,12 +1953,6 @@ TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeUndefined) ...@@ -2001,12 +1953,6 @@ TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeUndefined)
// GLES 3.0.4 section 3.8.13 Texture completeness // GLES 3.0.4 section 3.8.13 Texture completeness
TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions) TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensions)
{ {
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_3D, m2DArrayTexture); glBindTexture(GL_TEXTURE_3D, m2DArrayTexture);
std::vector<GLColor> texDataRed(8u * 8u * 8u, GLColor::red); std::vector<GLColor> texDataRed(8u * 8u * 8u, GLColor::red);
...@@ -2035,13 +1981,8 @@ TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensio ...@@ -2035,13 +1981,8 @@ TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensio
EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green);
if (IsIntel() && getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE) ANGLE_SKIP_TEST_IF(IsIntel() && IsWindows() && IsOpenGL());
{
// Intel was observed drawing color 0,0,0,0 instead of the texture color after the base
// level was changed.
std::cout << "Test partially skipped on Intel OpenGL." << std::endl;
return;
}
if (IsNVIDIA() && (getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE || if (IsNVIDIA() && (getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE ||
getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE)) getPlatformRenderer() == EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE))
{ {
...@@ -2066,13 +2007,6 @@ TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensio ...@@ -2066,13 +2007,6 @@ TEST_P(Texture2DArrayTestES3, DrawWithLevelsOutsideRangeWithInconsistentDimensio
// GLES 3.0.4 section 3.8.13 Texture completeness // GLES 3.0.4 section 3.8.13 Texture completeness
TEST_P(Texture2DTestES3, TextureCompletenessChangesWithMaxLevel) TEST_P(Texture2DTestES3, TextureCompletenessChangesWithMaxLevel)
{ {
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, mTexture2D); glBindTexture(GL_TEXTURE_2D, mTexture2D);
std::vector<GLColor> texDataGreen(8u * 8u, GLColor::green); std::vector<GLColor> texDataGreen(8u * 8u, GLColor::green);
...@@ -2112,13 +2046,6 @@ TEST_P(Texture2DTestES3, TextureCompletenessChangesWithMaxLevel) ...@@ -2112,13 +2046,6 @@ TEST_P(Texture2DTestES3, TextureCompletenessChangesWithMaxLevel)
// GLES 3.0.4 section 3.8.13 Texture completeness // GLES 3.0.4 section 3.8.13 Texture completeness
TEST_P(Texture3DTestES3, Texture3DCompletenessChangesWithMaxLevel) TEST_P(Texture3DTestES3, Texture3DCompletenessChangesWithMaxLevel)
{ {
if (IsOSX())
{
// Observed incorrect rendering on OSX.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_3D, mTexture3D); glBindTexture(GL_TEXTURE_3D, mTexture3D);
std::vector<GLColor> texDataGreen(2u * 2u * 2u, GLColor::green); std::vector<GLColor> texDataGreen(2u * 2u * 2u, GLColor::green);
...@@ -3489,9 +3416,6 @@ TEST_P(Texture2DTestES3, DepthTexturesWithMipmaps) ...@@ -3489,9 +3416,6 @@ TEST_P(Texture2DTestES3, DepthTexturesWithMipmaps)
// Tests unpacking into the unsized GL_ALPHA format. // Tests unpacking into the unsized GL_ALPHA format.
TEST_P(Texture2DTestES3, UnsizedAlphaUnpackBuffer) TEST_P(Texture2DTestES3, UnsizedAlphaUnpackBuffer)
{ {
// TODO(jmadill): Figure out why this fails on OSX.
ANGLE_SKIP_TEST_IF(IsOSX());
// Initialize the texure. // Initialize the texure.
glBindTexture(GL_TEXTURE_2D, mTexture2D); glBindTexture(GL_TEXTURE_2D, mTexture2D);
glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, getWindowWidth(), getWindowHeight(), 0, GL_ALPHA, glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, getWindowWidth(), getWindowHeight(), 0, GL_ALPHA,
...@@ -3794,12 +3718,9 @@ TEST_P(Texture2DTestES3, SingleTextureMultipleSamplers) ...@@ -3794,12 +3718,9 @@ TEST_P(Texture2DTestES3, SingleTextureMultipleSamplers)
// samples the cubemap using a direction vector (1,1,1). // samples the cubemap using a direction vector (1,1,1).
TEST_P(TextureCubeTestES3, SpecifyAndSampleFromBaseLevel1) TEST_P(TextureCubeTestES3, SpecifyAndSampleFromBaseLevel1)
{ {
if (IsOSX()) // Check http://anglebug.com/2155.
{ ANGLE_SKIP_TEST_IF(IsOSX() && IsNVIDIA());
// Check http://anglebug.com/2155.
std::cout << "Test skipped on OSX." << std::endl;
return;
}
const std::string vs = const std::string vs =
R"(#version 300 es R"(#version 300 es
precision mediump float; precision mediump float;
......
...@@ -498,11 +498,7 @@ TEST_P(TransformFeedbackTest, MultiplePaused) ...@@ -498,11 +498,7 @@ TEST_P(TransformFeedbackTest, MultiplePaused)
// contexts returns the correct results. Helps expose bugs in ANGLE's virtual contexts. // contexts returns the correct results. Helps expose bugs in ANGLE's virtual contexts.
TEST_P(TransformFeedbackTest, MultiContext) TEST_P(TransformFeedbackTest, MultiContext)
{ {
if (IsOSX() && (IsNVIDIA() || IsAMD() || IsIntel()) && IsOpenGL()) ANGLE_SKIP_TEST_IF(IsOSX() && (IsNVIDIA() || IsAMD()) && IsOpenGL());
{
std::cout << "Test skipped on NVIDIA, AMD and Intel OpenGL on OSX." << std::endl;
return;
}
if (IsLinux() && IsAMD() && IsOpenGL()) if (IsLinux() && IsAMD() && IsOpenGL())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment