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

--- Comment #3 from Jesse Barnes <jbar...@virtuousgeek.org> 2010-04-14 09:10:27 
PDT ---
On Wed, 14 Apr 2010 17:57:07 +0200
Mario Kleiner <mario.klei...@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.

Yeah was just talking with Kristian about this.  According to the
SGI_swap_interval spec, the default value should be 1.  For direct
rendered clients we should probably just make them send a swap interval
protocol request so that the server will match up and all will be in
sync.  That way we won't have to keep the server and mesa in sync by
hand.

I'll get to it later today unless Kristian already has a fix.

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to