[Mesa-dev] [Bug 97516] GLX_OML_swap_method not fully supported
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 5 23:42:55 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=97516
Timothy Arceri <t_arceri at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |t_arceri at yahoo.com.au
--- Comment #2 from Timothy Arceri <t_arceri at yahoo.com.au> ---
GLX_SWAP_COPY_OML should be working Thomas Hellstrom added support for it
towards the end of 2017. Partial support was also added for
GLX_SWAP_EXCHANGE_OML below is a direct copy of Thomas's reply when I asked him
what remained to properly expose GLX_SWAP_EXCHANGE_OML [1].
"You need to get the X server AIGLX to advertize it, because the
available features are the intersection of the X server AIGLX features
and the dri driver features, even if this is purely implemented in the
dri client. The reason GLX works this way is that after you've choosen
your config you can either choose to select a direct or indirect
context. That was a poor design.
Now the problem is that AIGLX isn't able to support it, because it uses
the dri driver dri2 path rather than the dri3 path, and I never got to
modifying AIGLX to use the dri3 path. Didn't think it was worth the
extra work.
In any case, you can hack-enable GLX_SWAP_EXCHANGE_OML if the client is
using dri3 by adding __DRI_ATTRIB_SWAP_EXCHANGE to back_buffer_modes[]
in src/gallium/state_trackers/dri/dri_screen.c, recompile and make sure
the X server also picks up the recompiled driver. That is if you have a
gallium driver. This worked fine with vmwgfx at the time I pushed the
patch as tested by the corresponding piglit test.
For the other dri drivers there should be a similar way to set the
back_buffer_modes[]."
[1] https://lists.freedesktop.org/archives/mesa-dev/2018-September/204407.html
--
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/20180905/3c86a664/attachment.html>
More information about the mesa-dev
mailing list