From: Jesse B. <jb...@vi...> - 2010-04-19 16:57:54
|
On Wed, 14 Apr 2010 17:57:07 +0200 Mario Kleiner <mar...@tu...> wrote: > Hmm. The patch inits mesa's local cached copy of swap_interval to > zero. The DRI2CreateDrawable() function inside the xserver's xserver/ > hw/xfree86/dri2/dri2.c implementation inits its own copy of > swap_interval to 1, at least in the DRI2 patch series of Jesse and > mine that is supposed be pulled of the next x-server release. > > So until client code calls glXSetSwapIntervalMESA() or > glXSetSwapIntervalSGI() the first time, the returned value will not > match the true setting. > > Either we need to match the defaults, or propagate the mesa setting > to the server at drawable creation time, or query the server's > setting to init mesa's copy. Got distracted by other things last week, but the fix is pushed now to both 7.8 and master. commit 385e2896ebf54ac0b016132fe513f21a5b67ba4f Author: Jesse Barnes <jb...@vi...> Date: Mon Apr 19 09:54:08 2010 -0700 DRI2: synchronize swap interval with server at startup time -- Jesse Barnes, Intel Open Source Technology Center |