[Mesa-dev] [Bug 63078] EGL X11 Regression: Maximum swap interval is 0 (worked with 9.0)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 9 05:06:46 PDT 2013


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

--- Comment #1 from post+fdo at ralfj.de ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130409/671b5ddc/attachment.html>


More information about the mesa-dev mailing list