Add table entries for almost all the remaining GL texture formats.
BUG=angleproject:884
BUG=angleproject:967
Change-Id: I113757dd9e1fae8fe0241a7286be979a90891b53
Reviewed-on: https://chromium-review.googlesource.com/270275
Reviewed-by: Brandon Jones <bajones@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/273135
diff --git a/src/tests/gl_tests/BlendMinMaxTest.cpp b/src/tests/gl_tests/BlendMinMaxTest.cpp
index 260f45a..79d9113 100644
--- a/src/tests/gl_tests/BlendMinMaxTest.cpp
+++ b/src/tests/gl_tests/BlendMinMaxTest.cpp
@@ -36,7 +36,7 @@
return blendMin ? std::min<GLubyte>(curAsUbyte, prevColor) : std::max<GLubyte>(curAsUbyte, prevColor);
}
- void runTest()
+ void runTest(GLenum colorFormat)
{
if (getClientVersion() < 3 && !extensionEnabled("GL_EXT_blend_minmax"))
{
@@ -44,6 +44,8 @@
return;
}
+ SetUpFramebuffer(colorFormat);
+
const size_t colorCount = 1024;
Color colors[colorCount];
for (size_t i = 0; i < colorCount; i++)
@@ -152,8 +154,7 @@
TEST_P(BlendMinMaxTest, RGBA8)
{
- SetUpFramebuffer(GL_RGBA8);
- runTest();
+ runTest(GL_RGBA8);
}
TEST_P(BlendMinMaxTest, RGBA32f)
@@ -164,8 +165,7 @@
return;
}
- SetUpFramebuffer(GL_RGBA32F);
- runTest();
+ runTest(GL_RGBA32F);
}
TEST_P(BlendMinMaxTest, RGBA16F)
@@ -176,8 +176,7 @@
return;
}
- SetUpFramebuffer(GL_RGBA16F);
- runTest();
+ runTest(GL_RGBA16F);
}
// Use this to select which configurations (e.g. which renderer, which GLES major version) these tests should be run against.