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.

thanks,
-mario

On Apr 14, 2010, at 4:16 PM, bugzilla-dae...@freedesktop.org wrote:

> https://bugs.freedesktop.org/show_bug.cgi?id=27628
>
> Kristian Høgsberg <k...@bitplanet.net> changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------- 
> ------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
>
> --- Comment #2 from Kristian Høgsberg <k...@bitplanet.net>  
> 2010-04-14 07:16:11 PDT ---
> Thanks, looks good. Committed:
>
> commit 0863c7e499a553c2d8e7bcbd09c5de88e396fcd0
> Author: Michael Schmidt <mschm...@redhat.com>
> Date:   Wed Apr 14 10:12:42 2010 -0400
>
>     Initialize DRI2 swap interval to 0
>
>     https://bugs.freedesktop.org/show_bug.cgi?id=27628
>
> -- 
> 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

*********************************************************************
Mario Kleiner
Max Planck Institute for Biological Cybernetics
Spemannstr. 38
72076 Tuebingen
Germany

e-mail: mario.klei...@tuebingen.mpg.de
office: +49 (0)7071/601-1623
fax:    +49 (0)7071/601-616
www:    http://www.kyb.tuebingen.mpg.de/~kleinerm
*********************************************************************
"For a successful technology, reality must take precedence
over public relations, for Nature cannot be fooled."
(Richard Feynman)


------------------------------------------------------------------------------
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