[Mesa-dev] [Bug 107530] [Regression] widgets rendered black in gtk

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 12 19:04:00 UTC 2018


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

--- Comment #6 from Lionel Landwerlin <lionel.g.landwerlin at linux.intel.com> ---
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 :
https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/loader/loader_dri3_helper.c#L1930
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 :(

-- 
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/mesa-dev/attachments/20180812/404a9080/attachment-0001.html>


More information about the mesa-dev mailing list