Merge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/master
[platform/upstream/VK-GL-CTS.git] / 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;