On 03/04/2014 07:31 AM, Chia-I Wu wrote:
Hi,

Until now, we do not support sRGB write for winsys framebuffers.  This series
changes that so that winsys framebuffers are marked sRGB-capable when the pipe
driver supports it.

This is not to be confused with GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB.  The
attribute guarantees the created winsys framebuffers to be sRGB-capable.  This
series is just a prerequisite if we ever want to export fbconfigs that are
sRGB-capable.

And we mark winsys framebuffers to be sRGB-capable only for desktop GL
contexts.  In GLES, sRGB capability implies sRGB write.  There is no
GL_FRAMEBUFFER_SRGB to control whether sRGB write is enabled or not.  We do
not want to surprise applications that do not expect sRGB.  This could change
when EGL_KHR_gl_colorspace is supported.

v2:
  - add MESA_FORMAT_B8G8R8X8_SRGB
  - never mark winsys framebuffer sRGB-capable for GLES contexts

The series LGTM, but you may want to wait for Michel to review/test too.

Reviewed-by: Brian Paul <bri...@vmware.com>


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to