Stop 10bit formats requiring GL_SRGB encoding
authorJames Glanville <james.glanville@imgtec.com>
Fri, 17 Apr 2020 10:54:40 +0000 (11:54 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 1 May 2020 08:51:08 +0000 (04:51 -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: I41ab6c6a0467a29cf7e5e764bf2b2cfb78c51db3

modules/egl/teglWideColorTests.cpp

index b9ced47..5a9b315 100644 (file)
@@ -1122,7 +1122,7 @@ void WideColorSurfaceTest::testFramebufferColorEncoding()
        bool correct = false;
        if (m_colorSpace == EGL_GL_COLORSPACE_SRGB_KHR || m_colorSpace == EGL_GL_COLORSPACE_DISPLAY_P3_EXT)
        {
-               if (m_redSize == 8 || m_redSize == 10)
+               if (m_redSize == 8)
                {
                        correct = framebufferColorEncoding == GL_SRGB;
                }