[Mesa-dev] [Bug 99781] Some Unity games fail assertion on startup in glXCreateContextAttribsARB

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 8 16:01:12 UTC 2019


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

--- Comment #20 from Uli Schlachter <psychon at znc.in> ---
Random guess for where the regression comes from:

X11DRV_expect_error() is used to say "I expect that the next request might
fail":
https://github.com/wine-mirror/wine/blob/6d801377055911d914226a3c6af8d8637a63fa13/dlls/winex11.drv/x11drv_main.c#L228-L241

...which is then used by the error handler to check if the error is expected
and should be ignored:
https://github.com/wine-mirror/wine/blob/6d801377055911d914226a3c6af8d8637a63fa13/dlls/winex11.drv/x11drv_main.c#L262-L271

So... apparently Wine wants to catch errors for "the next X11 request" while
mesa tries to invent errors that do not come from any X11 request.

Another random idea for a fix would be: Add a call to XSync(dpy, False) to the
"invent an error"-functions. That should guarantee that dpy->request ==
dpy->last_request_read and so it does not matter any more which of the two
sequence numbers mesa uses.

(Well, actually XSync() does a XGetInputFocus() internally, so mesa would then
use the sequence number of this GetInputFocus request for its claim that
something failed that never happened.)

-- 
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/20190508/cd1db8bb/attachment-0001.html>


More information about the mesa-dev mailing list