Stop 10bit formats requiring GL_SRGB encoding
authorJames Glanville <james.glanville@imgtec.com>
Thu, 2 Jul 2020 16:02:25 +0000 (17:02 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 29 Jul 2020 09:36:14 +0000 (05:36 -0400)
The EGL_KHR_gl_colorspace spec does not require formats that
are not SRGB8 to respect the given EGL_GL_COLORSPACE_KHR.

Components: EGL

VK-GL-CTS issue: 2288

Affects:

dEQP-EGL.functional.wide_color.window_1010102_colorspace_srgb
dEQP-EGL.functional.wide_color.pbuffer_1010102_colorspace_srgb

Change-Id: I1d9c502ef2f7068cf13d13564abdfe2d3c75b93b

modules/egl/teglWideColorTests.cpp

index 5a9b315..83bc57f 100644 (file)
@@ -1130,6 +1130,10 @@ void WideColorSurfaceTest::testFramebufferColorEncoding()
                {
                        correct = framebufferColorEncoding == GL_LINEAR;
                }
+               else if (m_redSize == 10)
+               {
+                       correct = true;
+               }
        }
        else
        {