[Mesa-dev] Adding support for sRGB KHR images to EGL

Eric Anholt eric at anholt.net
Thu Oct 4 15:41:36 PDT 2012


John Kåre Alsaker <john.kare.alsaker at gmail.com> writes:

> I would like add support for sRGB KHR images to EGL. This is primarily
> so Wayland compositors can create sRGB views of client buffers, but
> there's nothing preventing it from being useful in other cases.
>
> To allow this I propose a new EGL attribute which can be passed to
> eglCreateImageKHR, EGL_GAMMA_MESA. It can have two values,
> EGL_LINEAR_MESA (the default) and EGL_SRGB_MESA. These values can be
> shared with my other EGL extension proposal
> (http://lists.freedesktop.org/archives/mesa-dev/2012-September/027888.html).
> When EGL_SRGB_MESA is passed, the image must be created with a sRGB
> view or the function should return an error.
>
> To implement this in DRI for Wayland buffers it requires changes to
> the __DRIimageExtension structure. The fromPlanar function either has
> to be modified, or a new function could be introduced.

Could you add a specification for this extension like other EGL
extensions that exist out there?  I don't want to see an extension added
to the tree without that.

(I think you need to get new enums allocated from khronos, too.  idr?)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121004/4fcadbe0/attachment.pgp>


More information about the mesa-dev mailing list