Commit e0780931 by Kai Ninomiya Committed by Commit Bot

Suppress gl_test failures on Mac ARM64 (Apple DTK)

BuiltinVariableFragDepthClampingFloatRBOTest.Below1/ES3_OpenGL CopyTexImageTest.DeleteAfterCopyingToTextures/ES2_OpenGL GLSLTest.MaxVaryingVec2Arrays/ES2_Metal GLSLTest.MaxVaryingVec3ArrayAndOneFloatArray/ES2_Metal GLSLTest.MoreNestedCompoundStructsWithSamplersAsFunctionArg/ES2_OpenGL GLSLTest.NestedCompoundStructsWithSamplersAsFunctionArg/ES2_OpenGL GLSLTest.NestedStructsWithSamplersAsFunctionArg/ES2_OpenGL GLSLTest.NestedStructsWithSamplersAsFunctionArg/ES3_OpenGL MipmapTestES3.BaseLevelTextureBug/ES3_OpenGL MipmapTestES3.GenerateMipmapBaseLevel/ES3_OpenGL MipmapTestES3.GenerateMipmapCubeBaseLevel/ES3_OpenGL MipmapTestES3.GenerateMipmapMaxLevel/ES3_OpenGL MipmapTestES3.GenerateMipmapPreservesOutOfRangeMips/ES3_OpenGL OcclusionQueriesTest.MultiQueries/ES2_Metal Texture2DBaseMaxTestES3.GenerateMipmapAfterRedefineAndRebase/ES3_OpenGL Texture2DFloatTestES2.TextureFloatLinearLegacyTest/ES2_Metal Texture2DFloatTestES2.TextureFloatLinearLegacyTest/ES2_OpenGL Texture2DFloatTestES2.TextureFloatLinearTest/ES2_Metal Texture2DFloatTestES2.TextureFloatLinearTest/ES2_OpenGL Texture2DFloatTestES3.TextureFloatLinearLegacyTest/ES3_OpenGL Texture2DFloatTestES3.TextureFloatLinearTest/ES3_OpenGL TimerQueriesTest.TimeElapsed/ES3_OpenGL TimerQueriesTest.TimeElapsedMulticontextTest/ES3_OpenGL WebGLCompatibilityTest.TextureCopyingFeedbackLoops/ES2_OpenGL WebGLCompatibilityTest.TextureCopyingFeedbackLoops/ES3_OpenGL Bug: chromium:1132295 Change-Id: If64dc67275063c8046dbc941d92de273fbc226e5 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2461674 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent cd8eb564
......@@ -283,6 +283,9 @@ TEST_P(BuiltinVariableFragDepthClampingFloatRBOTest, Above0)
// Test that gl_FragDepth is clamped below 1
TEST_P(BuiltinVariableFragDepthClampingFloatRBOTest, Below1)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
CheckDepthWritten(1.0f, 42.0f);
}
......
......@@ -466,6 +466,9 @@ TEST_P(CopyTexImageTest, CopyTexSubImageToNonCubeCompleteDestination)
// Deleting textures after copying to them. http://anglebug.com/4267
TEST_P(CopyTexImageTest, DeleteAfterCopyingToTextures)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
GLTexture texture;
glBindTexture(GL_TEXTURE_2D, texture);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
......
......@@ -1559,6 +1559,9 @@ TEST_P(GLSLTest, MaxVaryingVec3AndOneFloat)
// Only fails on D3D9 because of packing limitations.
TEST_P(GLSLTest, MaxVaryingVec3ArrayAndOneFloatArray)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsMetal());
GLint maxVaryings = 0;
glGetIntegerv(GL_MAX_VARYING_VECTORS, &maxVaryings);
......@@ -1594,6 +1597,9 @@ TEST_P(GLSLTest, MaxVaryingVec2Arrays)
// (http://anglebug.com/1291)
ANGLE_SKIP_TEST_IF(IsOSX() && IsAMD() && IsOpenGL());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsMetal());
GLint maxVaryings = 0;
glGetIntegerv(GL_MAX_VARYING_VECTORS, &maxVaryings);
......@@ -5402,6 +5408,9 @@ TEST_P(GLSLTest, NestedStructsWithSamplersAsFunctionArg)
// Shader failed to compile on Nexus devices. http://anglebug.com/2114
ANGLE_SKIP_TEST_IF((IsNexus5X() || IsNexus6P()) && IsAdreno() && IsOpenGLES());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
const char kFragmentShader[] = R"(precision mediump float;
struct S { sampler2D samplerMember; };
struct T { S nest; };
......@@ -5505,6 +5514,9 @@ TEST_P(GLSLTest, NestedCompoundStructsWithSamplersAsFunctionArg)
// Shader failed to compile on Nexus devices. http://anglebug.com/2114
ANGLE_SKIP_TEST_IF((IsNexus5X() || IsNexus6P()) && IsAdreno() && IsOpenGLES());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
const char kFragmentShader[] = R"(precision mediump float;
struct S { sampler2D samplerMember; bool b; };
struct T { S nest; bool b; };
......@@ -5570,6 +5582,9 @@ TEST_P(GLSLTest, MoreNestedCompoundStructsWithSamplersAsFunctionArg)
// Shader failed to compile on Nexus devices. http://anglebug.com/2114
ANGLE_SKIP_TEST_IF((IsNexus5X() || IsNexus6P()) && IsAdreno() && IsOpenGLES());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
const char kFragmentShader[] = R"(precision mediump float;
struct S { bool b; sampler2D samplerMember; };
struct T { bool b; S nest; };
......
......@@ -1636,6 +1636,9 @@ TEST_P(MipmapTestES3, GenerateMipmapBaseLevel)
// Observed incorrect rendering on AMD, sampling level 2 returns black.
ANGLE_SKIP_TEST_IF(IsAMD() && IsDesktopOpenGL());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
glBindTexture(GL_TEXTURE_2D, mTexture);
ASSERT_EQ(getWindowWidth(), getWindowHeight());
......@@ -1688,6 +1691,9 @@ TEST_P(MipmapTestES3, GenerateMipmapPreservesOutOfRangeMips)
// http://anglebug.com/4786
ANGLE_SKIP_TEST_IF(IsOpenGLES() && IsNVIDIAShield());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
constexpr GLint kTextureSize = 16;
const std::vector<GLColor> kLevel0Data(kTextureSize * kTextureSize, GLColor::red);
const std::vector<GLColor> kLevel1Data(kTextureSize * kTextureSize, GLColor::green);
......@@ -1753,6 +1759,9 @@ TEST_P(MipmapTestES3, GenerateMipmapCubeBaseLevel)
// Observed incorrect rendering on AMD, sampling level 2 returns black.
ANGLE_SKIP_TEST_IF(IsAMD() && IsDesktopOpenGL());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
ASSERT_EQ(getWindowWidth(), getWindowHeight());
glBindTexture(GL_TEXTURE_CUBE_MAP, mTexture);
......@@ -1804,6 +1813,9 @@ TEST_P(MipmapTestES3, GenerateMipmapCubeBaseLevel)
// the levelbase array, are left unchanged by this computation."
TEST_P(MipmapTestES3, GenerateMipmapMaxLevel)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
glBindTexture(GL_TEXTURE_2D, mTexture);
// Fill level 0 with blue
......@@ -1909,6 +1921,9 @@ TEST_P(MipmapTestES3, BaseLevelTextureBug)
// Probably not Intel.
ANGLE_SKIP_TEST_IF(IsOSX() && (IsNVIDIA() || IsIntel()));
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
std::vector<GLColor> texDataRed(2u * 2u, GLColor::red);
glBindTexture(GL_TEXTURE_2D, mTexture);
......
......@@ -391,6 +391,9 @@ TEST_P(OcclusionQueriesTest, MultiQueries)
// http://anglebug.com/4925
ANGLE_SKIP_TEST_IF(IsMetal() && IsNVIDIA());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
GLuint query[5] = {};
glGenQueriesEXT(5, query);
......
......@@ -3322,6 +3322,9 @@ TEST_P(Texture2DBaseMaxTestES3, GenerateMipmapAfterRedefineAndRebase)
// http://crbug.com/1100613
ANGLE_SKIP_TEST_IF(IsNVIDIAShield());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
initTest();
// Test that all mips have the expected data initially (this makes sure the texture image is
......@@ -6348,6 +6351,9 @@ TEST_P(Texture2DFloatTestES2, TextureHalfFloatSampleLegacyTest)
// Test linear sampling for ES3 32F formats
TEST_P(Texture2DFloatTestES3, TextureFloatLinearTest)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_OES_texture_float_linear"));
testFloatTextureLinear(GL_RGBA32F, GL_RGBA, GL_FLOAT);
......@@ -6356,6 +6362,9 @@ TEST_P(Texture2DFloatTestES3, TextureFloatLinearTest)
// Test linear sampling for ES2 32F formats
TEST_P(Texture2DFloatTestES2, TextureFloatLinearTest)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && (IsDesktopOpenGL() || IsMetal()));
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_OES_texture_float_linear"));
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_OES_texture_float"));
......@@ -6381,6 +6390,9 @@ TEST_P(Texture2DFloatTestES2, TextureHalfFloatLinearTest)
// Test linear sampling for legacy GLES 2.0 32F formats in ES3
TEST_P(Texture2DFloatTestES3, TextureFloatLinearLegacyTest)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_OES_texture_float"));
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_OES_texture_float_linear"));
......@@ -6398,6 +6410,9 @@ TEST_P(Texture2DFloatTestES3, TextureFloatLinearLegacyTest)
// Test linear sampling for legacy GLES 2.0 32F formats in ES2
TEST_P(Texture2DFloatTestES2, TextureFloatLinearLegacyTest)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && (IsDesktopOpenGL() || IsMetal()));
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_OES_texture_float"));
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_OES_texture_float_linear"));
......
......@@ -86,6 +86,9 @@ TEST_P(TimerQueriesTest, ProcAddresses)
// Tests the time elapsed query
TEST_P(TimerQueriesTest, TimeElapsed)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_EXT_disjoint_timer_query"));
GLint queryTimeElapsedBits = 0;
......@@ -275,6 +278,9 @@ TEST_P(TimerQueriesTest, TimeElapsedMulticontextTest)
// http://anglebug.com/1541
ANGLE_SKIP_TEST_IF(IsAMD() && IsOpenGL());
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_EXT_disjoint_timer_query"));
// Test skipped because the Vulkan backend doesn't account for (and remove) time spent in other
......
......@@ -2721,6 +2721,9 @@ void main() {
// Based on the WebGL test conformance/textures/misc/texture-copying-feedback-loops.html
TEST_P(WebGLCompatibilityTest, TextureCopyingFeedbackLoops)
{
// TODO(crbug.com/1132295): Failing on Apple DTK.
ANGLE_SKIP_TEST_IF(IsOSX() && IsARM64() && IsDesktopOpenGL());
GLTexture texture;
glBindTexture(GL_TEXTURE_2D, texture.get());
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
......
......@@ -213,6 +213,15 @@ bool IsOSX()
#endif
}
bool IsARM64()
{
#if defined(_M_ARM64)
return true;
#else
return false;
#endif
}
bool IsOzone()
{
#if defined(USE_OZONE) && defined(USE_X11)
......@@ -332,15 +341,6 @@ bool IsNVIDIA()
return HasSystemVendorID(kVendorID_NVIDIA);
}
bool IsARM64()
{
#if defined(_M_ARM64)
return true;
#else
return false;
#endif
}
bool IsConfigAllowlisted(const SystemInfo &systemInfo, const PlatformParameters &param)
{
VendorID vendorID =
......
......@@ -28,6 +28,9 @@ bool IsWindows();
bool IsWindows7();
bool IsFuchsia();
// CPU architectures
bool IsARM64();
// Android devices
bool IsNexus5X();
bool IsNexus6P();
......@@ -40,9 +43,8 @@ bool IsNVIDIAShield();
// GPU vendors.
bool IsIntel();
bool IsAMD();
bool IsNVIDIA();
bool IsARM();
bool IsARM64();
bool IsNVIDIA();
// GPU devices.
bool IsSwiftshaderDevice();
......
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