<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Mesa 17.2 no longer can give SRGB-capable framebuffer on i965, even though Mesa 17.1.x does."
href="https://bugs.freedesktop.org/show_bug.cgi?id=102354#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Mesa 17.2 no longer can give SRGB-capable framebuffer on i965, even though Mesa 17.1.x does."
href="https://bugs.freedesktop.org/show_bug.cgi?id=102354">bug 102354</a>
from <span class="vcard"><a class="email" href="mailto:lemody@gmail.com" title="Tapani Pälli <lemody@gmail.com>"> <span class="fn">Tapani Pälli</span></a>
</span></b>
<pre>(In reply to Tapani Pälli from <a href="show_bug.cgi?id=102354#c10">comment #10</a>)
<span class="quote">> 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?</span >
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>