From: James Glanville Date: Fri, 17 Apr 2020 10:54:40 +0000 (+0100) Subject: Stop 10bit formats requiring GL_SRGB encoding X-Git-Tag: upstream/1.3.5~1405^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0683c28f651fccc2f7713a97b205511681242b5d;p=platform%2Fupstream%2FVK-GL-CTS.git 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) --- 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; }