[Mesa-dev] Adding support for sRGB KHR images to EGL
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
> 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
Size: 197 bytes
Desc: not available
More information about the mesa-dev