[Bug 102354] Mesa 17.2 no longer can give SRGB-capable framebuffer on i965, even though Mesa 17.1.x does.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 11 11:28:28 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102354

--- Comment #11 from Tapani Pälli <lemody at gmail.com> ---
(In reply to Tapani Pälli from comment #10)
> My GLX skills are poor, but I've attempted to build a small test app.
> 
> In the list returned by glXGetFBConfigs I do see configs that have
> GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT set. However, when calling glXChooseVisual
> with 'GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT' I get no visual at all. So something
> is missing? I think glXCreateContext should be called with XVisualInfo
> capable to sRGB in order for this to work. Is this the same error that is
> seen with STK?

ok it seems I was not using API properly, I do get sRGB visual fine with
following attribs defined:

--- 8< ---
            int srgb_attr[] = {
               GLX_RENDER_TYPE, GLX_RGBA_BIT,
               GLX_RGBA,
/* these are not really necessary */
#if 0          
               GLX_RED_SIZE,   4,
               GLX_GREEN_SIZE, 4,
               GLX_BLUE_SIZE,  4,
               GLX_DEPTH_SIZE, 4,
               GLX_DOUBLEBUFFER, True,
               GLX_STENCIL_SIZE, 1,
#endif
               GLX_ALPHA_SIZE, 0,
               GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT,
               None
            };
--- 8< ---

and later get 0x8c40 as GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170911/a667263a/attachment.html>


More information about the intel-3d-bugs mailing list