Merge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/master
authorAlexander Galazin <alexander.galazin@arm.com>
Tue, 2 Oct 2018 14:26:02 +0000 (16:26 +0200)
committerAlexander Galazin <alexander.galazin@arm.com>
Tue, 2 Oct 2018 14:26:02 +0000 (16:26 +0200)
Change-Id: Ifdd2ce6954a666e1643ae8a79c96bb39474ac94a

modules/egl/teglWideColorTests.cpp

index ada3797..46b4af6 100644 (file)
@@ -872,9 +872,10 @@ deUint8 WideColorSurfaceTest::expectedUint8 (float reference)
        }
        else
        {
-               // Apply sRGB transfer function when colorspace is sRGB and pixel component
-               // size is 8 bits (which is why we are here in expectedUint8).
-               if (m_colorSpace == EGL_GL_COLORSPACE_SRGB_KHR)
+               // Apply sRGB transfer function when colorspace is sRGB or Display P3 and
+               // pixel component size is 8 bits (which is why we are here in expectedUint8).
+               if (m_colorSpace == EGL_GL_COLORSPACE_SRGB_KHR ||
+                               m_colorSpace == EGL_GL_COLORSPACE_DISPLAY_P3_EXT)
                {
                        float srgbReference;