Stop 10bit formats requiring GL_SRGB encoding
authorJames Glanville <james.glanville@imgtec.com>
Thu, 2 Jul 2020 16:02:25 +0000 (17:02 +0100)
committerJames Glanville <james.glanville@imgtec.com>
Thu, 23 Jul 2020 10:55:55 +0000 (06:55 -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 5a9b3150d377f1ac4a194b58f7c1e12ceb732877..83bc57f95f8f98df95afa40e84a000352703087b 100644 (file)
@@ -1130,6 +1130,10 @@ void WideColorSurfaceTest::testFramebufferColorEncoding()
                {
                        correct = framebufferColorEncoding == GL_LINEAR;
                }
+               else if (m_redSize == 10)
+               {
+                       correct = true;
+               }
        }
        else
        {