From 0683c28f651fccc2f7713a97b205511681242b5d Mon Sep 17 00:00:00 2001 From: James Glanville Date: Fri, 17 Apr 2020 11:54:40 +0100 Subject: [PATCH] Stop 10bit formats requiring GL_SRGB encoding 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 (cherry picked from commit c90d90d4b1b006d0b39c04e7517b7252564bf2e0) --- modules/egl/teglWideColorTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/egl/teglWideColorTests.cpp b/modules/egl/teglWideColorTests.cpp index b9ced47..5a9b315 100644 --- a/modules/egl/teglWideColorTests.cpp +++ b/modules/egl/teglWideColorTests.cpp @@ -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; } -- 2.7.4