[Mesa-dev] [0/4] glx/dri: Attempt to fix GLX_OML_swap_method v2

Brian Paul brian.e.paul at gmail.com
Wed Aug 9 14:51:20 UTC 2017


Hi Thomas,

The series looks good to me.  One formatting nit: in one of the patches
there's unneeded space around the conditional in some the "if (" code.

Reviewed-by: Brian Paul <brianp at vmware.com>


On Wed, Aug 9, 2017 at 3:53 AM, Thomas Hellstrom <thellstrom at vmware.com>
wrote:

> The current implementation was suffering from the following problems:
> 1) The driGetConfigAttribIndex function was not returning any value for
> the driconfig swapMethod.
> 2) The X server GLX code is using the value obtained from
> the AIGLX dri driver driGetConfigAttribIndex to populate its GLX fbconfig.
> 3) The client side GLX code was assuming fbconfig and driconfig match
> regardless of whether there actually was a swapMethod match.
> 4) We were using GLX tokens in the dri code.
> 5) dri3 does currently not support GLX_SWAP_COPY_OML, even if that's
> advertized by the gallium dri2 state tracker.
>
> Attempt to fix 1-4. Some highlights:
>
> Because of 1) in combination with 2), if the X server uses an AIGLX dri
> driver
> that doesn't have this fix, the GLX transmitted fbconfig swapMethod value
> will
> be bogus. So if we, on the client side detect a bogus value, change it to
> GLX_SWAP_UNDEFINED_OML.
>
> v2: Split the single patch into four patches.
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170809/3a373057/attachment.html>


More information about the mesa-dev mailing list