Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dd81666 authored by Chris Forbes's avatar Chris Forbes
Browse files

[RESTRICT AUTOMERGE] Revert "libEGL: When driver doesn't understand P3, map...

[RESTRICT AUTOMERGE] Revert "libEGL: When driver doesn't understand P3, map sRGB-encoded P3 to sRGB"

This reverts commit ff499944.

Reason for revert: while correct vs spec, this change interacts badly with various other bugs in the framework. Will fix in Q instead.

Change-Id: Iea52555527e15e86891e50cd38d9f43499d3651c
parent ff499944
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -562,15 +562,6 @@ static EGLBoolean processAttributes(egl_display_ptr dp, NativeWindowType window,
                    break;
                }
            }

            // If the driver doesn't understand it, we should map sRGB-encoded P3 to
            // sRGB rather than just dropping the colorspace on the floor.
            // For this format, the driver is expected to apply the sRGB
            // transfer function during framebuffer operations.
            if (!copyAttribute && attr[1] == EGL_GL_COLORSPACE_DISPLAY_P3_EXT) {
                strippedAttribList->push_back(attr[0]);
                strippedAttribList->push_back(EGL_GL_COLORSPACE_SRGB_KHR);
            }
        }
        if (copyAttribute) {
            strippedAttribList->push_back(attr[0]);