<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>+Victor.</p>
<p>Received a bounced message:<br>
</p>
<pre class="moz-quote-pre" wrap="">being held until the list moderator can review it for approval.</pre>
<div class="moz-cite-prefix">On 2019-02-07 7:33 a.m., Leo Liu wrote:<br>
</div>
<blockquote type="cite" cite="mid:c69e6089-fd1b-8195-9a5e-2bfe8196f44d@amd.com">
<p>Hi,</p>
<p>Mesa is enabled "allow_rgb10_configs" by default. Note that 10bpc affects both GLX and EGL. The requirement from EGL is that 10bpc formats must be first in the list of configs. This breaks applications that just use the first config, which used to be 8bpc
 and now it's 10bpc. Here's related bug report and some discussions from Mesa list:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://bugs.freedesktop.org/show_bug.cgi?id=109548" moz-do-not-send="true">https://bugs.freedesktop.org/show_bug.cgi?id=109548</a><br>
</p>
<p><a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/archives/mesa-dev/2019-February/214610.html" moz-do-not-send="true">https://lists.freedesktop.org/archives/mesa-dev/2019-February/214610.html</a></p>
<p>It's affecting Totem player, and gstreamer pipeline like:</p>
<p>`gst-launch-1.0 -f filesrc location=/path/to/mp4 ! qtdemux ! h264parse ! vaapih264dec ! glimagesink`<br>
</p>
<p>The current code  @gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapiutils_glx.c::gl_create_pixmap_object (Display * dpy, guint width, guint height)<br>
</p>
<p>fbconfig = glXChooseFBConfig (dpy, screen, fbconfig_attrs, &n_fbconfig_attrs);</p>
<p> pixo->glx_pixmap = gl_vtable->glx_create_pixmap (dpy,<br>
      fbconfig[0], pixo->pixmap, pixmap_attrs);</p>
<p>The EGL spec requires that the config with the highest bpc must be first, so we hope application could iterate over the returned array of fbconfigs and select the one which returns red=8 from
<span>glXGetFBConfigAttrib</span>.</p>
<p><br>
</p>
<p>Regards,</p>
<p>Leo</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p><br>
</p>
<p><br>
</p>
</blockquote>
</body>
</html>