[Mesa-dev] [Bug 105132] glxSwapBuffers has no effect

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 20 10:13:23 UTC 2018


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

--- Comment #6 from Julien Isorce <julien.isorce at gmail.com> ---
(In reply to Scott D Phillips from comment #1)
> maybe change the dri2 code to use xcb-dri2.

Hi Scott, were you thinking to make
https://cgit.freedesktop.org/mesa/mesa/tree/src/glx/dri2_glx.c use more
xcb_dri2_* calls ?

Currently it uses a mix, for example it calls "DRI2Connect" but also calls
"xcb_dri2_swap_buffers"

The remaining DRI2 calls are:
DRI2Connect
DRI2Authenticate
DRI2CreateDrawable
DRI2DestroyDrawable
DRI2CopyRegion
DRI2GetBuffersWithFormat
DRI2QueryExtension
DRI2QueryVersion

Looks like
https://cgit.freedesktop.org/mesa/mesa/tree/src/egl/drivers/dri2/platform_x11.c#n612
is a good example for this conversion. Also some refactoring can be done to
share the code between mesa/src/glx/dri2_glx.c and
mesa/src/egl/drivers/dri2/platform_x11.c

But why it will solve the fact that currently
mesa/src/glx/dri2.c::DRI2WireToEvent::dri2InvalidateBuffers is not called when
the app owns the event queue ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180220/c60c07c1/attachment-0001.html>


More information about the mesa-dev mailing list