http://bugs.freedesktop.org/show_bug.cgi?id=22604
Summary: glxgears prints incorrect "The framerate should be
approximately 1/21955 the monitor refresh rate" messages
Product: Mesa
Version: CVS
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: minor
Priority: medium
Component: Demos
AssignedTo: [email protected]
ReportedBy: [email protected]
Run glxgears on a driver that supports GLX_SGI_video_sync bug not
GLX_MESA_swap_control, and it prints a message like the following:
Running synchronized to the vertical refresh. The framerate should be
approximately 1/21955 the monitor refresh rate.
This is, of course, incorrect. The problem is this code in query_vsync:
if ((interval <= 0)
&& is_glx_extension_supported(dpy, "GLX_SGI_video_sync")) {
PFNGLXGETVIDEOSYNCSGIPROC pglXGetVideoSyncSGI =
(PFNGLXGETVIDEOSYNCSGIPROC)
glXGetProcAddressARB((const GLubyte *) "glXGetVideoSyncSGI");
unsigned count;
if ((*pglXGetVideoSyncSGI)(& count) == 0) {
interval = (int) count;
}
}
glXGetVideoSyncSGI returns the current vsync count, not the swap interval. If
you want to sync to vblank, you can enable that with glXSwapIntervalSGI(1), but
there's no way to query the current swap interval without
GLX_MESA_swap_control.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev