From 29dd0729b72d8375ef017001475282d85e29cf1b Mon Sep 17 00:00:00 2001 From: James Glanville Date: Thu, 2 Jul 2020 17:02:25 +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: I1d9c502ef2f7068cf13d13564abdfe2d3c75b93b --- modules/egl/teglWideColorTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/egl/teglWideColorTests.cpp b/modules/egl/teglWideColorTests.cpp index f4ac0be..57a8603 100644 --- a/modules/egl/teglWideColorTests.cpp +++ b/modules/egl/teglWideColorTests.cpp @@ -1129,6 +1129,10 @@ void WideColorSurfaceTest::testFramebufferColorEncoding() { correct = framebufferColorEncoding == GL_LINEAR; } + else if (m_redSize == 10) + { + correct = true; + } } else { -- 2.7.4