[Mesa-dev] [Bug 27628] glxgears prints bogus swap interval information

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 19 09:57:49 PDT 2010


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

--- Comment #4 from Jesse Barnes <jbarnes at virtuousgeek.org> 2010-04-19 09:57:49 PDT ---
On Wed, 14 Apr 2010 17:57:07 +0200
Mario Kleiner <mario.kleiner at tuebingen.mpg.de> 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 <jbarnes at virtuousgeek.org>
Date:   Mon Apr 19 09:54:08 2010 -0700

    DRI2: synchronize swap interval with server at startup time

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list