<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [Regression][Bisected] GTAⅣ under wine fails with GLXBadFBConfig"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110590">110590</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[Regression][Bisected] GTAⅣ under wine fails with GLXBadFBConfig
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>GLX
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Hi-Angel@yandex.ru
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>When running `wine LaunchGTAIV.exe` with latest mesa, it blinks once, and then
disappears with:
X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 153 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 325
Current serial number in output stream: 330
Bisection got me to the commit below. Reverting it locally fixes the problem.
commit e91ee763c378d03883eb88cf0eadd8aa916f7878
Author: Hal Gentz <<a href="mailto:zegentzy@protonmail.com">zegentzy@protonmail.com</a>>
Date: Sun Mar 24 16:52:39 2019 -0600
glx: Fix synthetic error generation in __glXSendError
To quote Uli Schlachter, who understands this stuff more than I do:
> The function __glXSendError() in mesa's src/glx/glx_error.c invents
an X11
> protocol error out of thin air. For the sequence number it uses
dpy->request.
> This is the sequence number of the last request that was sent.
_XError() will
> then update dpy->last_request_read based on the sequence number of
the error
> that just "came in".
>
> If now another something comes in with a sequence number less than
> dpy->last_request_read, since sequence numbers are monotonically
increasing,
> widen() will incorrectly add 1<<32 to the sequence number and things
might go
> downhill afterwards.
`__glXSendErrorForXcb` was also patched, as that's the function that
`glXCreateContextAttribsARB` actually uses.
Bugzilla: <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Some Unity games fail assertion on startup in glXCreateContextAttribsARB"
href="show_bug.cgi?id=99781">https://bugs.freedesktop.org/show_bug.cgi?id=99781</a>
Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>
Fixes: ad503c41 'apple: Initial import of libGL for OSX from AppleSGLX
svn repository'
Reviewed-by: Adam Jackson <<a href="mailto:ajax@redhat.com">ajax@redhat.com</a>>
Reviewed-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>>
Signed-off-by: Hal Gentz <<a href="mailto:zegentzy@protonmail.com">zegentzy@protonmail.com</a>>
Note: I couldn't reproduce it with other games with or without wine, but I only
have a few of them though.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>