[Nouveau] swap control

Xavier Chantry chantry.xavier at gmail.com
Fri Jan 29 01:07:08 PST 2010

Is it possible to use sync to vblank / swap control with mesa/gallium
(and nouveau) ?
I googled it but did not find any clear answers about how it is
supposed to be enabled.
I also tried to read the code, and I am getting lost. So I didn't find
any answers to any of these questions :
1) how are we supposed to enable it ? is there an env var , or
~/.drirc ? is drirc/driconf still valid with dri2 ?
2) is it supported by mesa/gallium ? and nouveau ?

It looks like there were some related changes with dri2.2 but that
might not concern SGI/MESA swap_control extensions.

Anyway when running progs/xdemos/glxswapcontrol with softpipe, I get
the following message :
Unable to set swap-interval.  Neither GLX_SGI_swap_control nor
GLX_MESA_swap_control are supported.

And I do not get when using nouveau, so it seems these extensions are
announced but not supported.

Another mystery : right after the dri2.2 merge, running glxgears
showed the following bogus message :
Running synchronized to the vertical refresh.  The framerate should be
approximately 1/12400064 the monitor refresh rate.
4843 frames in 5.0 seconds = 968.573 FPS

Again I tried to read the code when it happened but I didn't find
anything. And the message went away soon after, but I don't know when
and why. Probably during one of the regular mesa update.. but I
couldn't find which patch fixed it.

More information about the Nouveau mailing list