<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [Regression] widgets rendered black in gtk"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107530#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [Regression] widgets rendered black in gtk"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107530">bug 107530</a>
from <span class="vcard"><a class="email" href="mailto:lionel.g.landwerlin@linux.intel.com" title="Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>"> <span class="fn">Lionel Landwerlin</span></a>
</span></b>
<pre>So I went back and compiled 18.0.5 and unfortunately it doesn't work for me.
All the widgets are black outside the GLArea.
Interestingly if you set LIBGL_DRI3_DISABLE=1 the rendering of the widgets
sometimes appear.
GTK+ tries to be clever by reading back it's front buffer into the back buffer.
What I found is that DRI3 will outright prevent you from reading back the front
buffer of a window :
<a href="https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/loader/loader_dri3_helper.c#L1930">https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/loader/loader_dri3_helper.c#L1930</a>
That makes the core of Mesa fill the texture unit, that should be used to
sample from the front buffer of the window, use the default that is a 1x1 black
texture.
You can workaround that issue by disabling the texture from pixmap mechanism of
GTK+ by setting GDK_GL=software-draw-surface.
I'm not really experienced enough to tell what part of the stack is broken :(</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>