GL_SRG8_ALPHA8 also supported in OpenGL ES 3.0+
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 16 May 2018 11:01:52 +0000 (11:01 +0000)
committerAndres Gomez <agomez@igalia.com>
Tue, 29 May 2018 14:53:12 +0000 (17:53 +0300)
commit4b3fe8731e24ef3622027caf7f0a5cbfa438388d
treed0cf401a8b8004e465a59c9d1b0d2b07bb8e6075
parentaba642893d75554d0dfc0319fc0018ce6a1393cb
GL_SRG8_ALPHA8 also supported in OpenGL ES 3.0+

dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.srgb8_alpha8
assumes that using GL_SRGB8_ALPHA8 in GLES2 should fail unless proper
extensions are supported.

But the OpenGL ES context created can be either 2.0 or an upper version,
and upper versions (3.0+) supports this format without extensions.

Thus, if OpenGL ES 3.0+ context is returned, this test should assume
that rendering is possible.

This is an extension of fix done in Change-ID
Ibb95736959ff9d5b0ff972ccf3983abc98795be3.

Affectd tests:
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.srgb8_alpha8

Components: OpenGL

VK-GL-CTS issue: 1137

Change-Id: I733a8595b1eba7756787cde4a6bca2391dc345d7
(cherry picked from commit dd951adf61b3b6ad6cdab92b26b00c6931235681)
modules/gles2/functional/es2fFboCompletenessTests.cpp