gpu: Benchmark GL_RED instead of GL_LUMINANCE on OpenGL ES3.
This patch tests GL_LUMINANCE only when OpenGL is not ES3
and tests GL_RED when on OpengGL ES3.
This change should allow crrev.com/1022603002 to run on Android perf
bots. Without this patch crrev.com/1022603002 fails on perf bots because
glTextureStorage2D doesn't always accept GL_LUMINANCE8 as
internalformat.
glTextureStorage2D has been added to OpenGL ES3 and it's available
as an extension (GL_{EXT,ARB}_texture_storage) prior to that.
If glTextureStorage2D is availabe via the extension it accepts
GL_LUMINANCE8_EXT as internal format, otherwise it doesn't.
BUG=468748
Review URL: https://codereview.chromium.org/1022923002
Cr-Commit-Position: refs/heads/master@{#321462}
Showing
Please register or sign in to comment