<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - EGL X11 Regression: Maximum swap interval is 0 (worked with 9.0)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63078#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - EGL X11 Regression: Maximum swap interval is 0 (worked with 9.0)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63078">bug 63078</a>
from <span class="vcard"><a class="email" href="mailto:post+fdo@ralfj.de" title="post+fdo@ralfj.de">post+fdo@ralfj.de</a>
</span></b>
<pre>I found the problem: In platform_x11.c, dri2_initialize_x11_dri2, the function
dri2_add_configs_for_visuals (which sets the maximum swap interval of the
EGLConfigs) is called before dri2_setup_swap_interval, so
dri2_dpy->max_swap_interval is still 0 when the config is created. Later, it is
changed, but that does not reflect in the EGLConfigs.
I can fix the issue locally by moving the call of dri2_setup_swap_interval
before the one to dri2_add_configs_for_visuals, but not knowing this codebase
at all, I do not know whether everything is actually properly initialised for
dri2_setup_swap_interval to be safe to call. All I know is that it does not
crash here ;-) and applications can be v-sync'ed again.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>