xf86-video-ati page flipping fixes

Ville Syrjälä syrjala at sci.fi
Thu May 5 09:06:39 PDT 2011


On Thu, May 05, 2011 at 05:09:56PM +0200, Mario Kleiner wrote:
> On May 5, 2011, at 4:23 PM, Ville Syrjälä wrote:
> 
> > On Thu, May 05, 2011 at 11:46:45AM +0200, Michel Dänzer wrote:
> >> On Mit, 2011-05-04 at 23:51 +0300, Ville Syrjala wrote:
> >>> I came to the conclusion that the xserver DRI2 invalidate patches  
> >>> that
> >>> have been discussed aren't really fixing the problem. I suppose  
> >>> they may
> >>> make the problem slightly less likely to happen, but at least for  
> >>> me that
> >>> likelyhood is still very high. The whole mess looks like a simple  
> >>> driver
> >>> bug to me.
> >>
> >> I think the xserver patches are still necessary, otherwise how are  
> >> the
> >> cached DRI2 pPriv->buffers updated for other windows sharing the same
> >> pixmap?
> >
> > As the real front buffers are not handed out to clients, there isn't
> > that much reason to update them. Making sure the fake front buffer
> > contain a more recent snapshot of the real front would be one reason
> > though.
> >
> 
> Could it be that your patch fixes a closely related, but different  
> bug? During OpenGL rendering, Mesa/Gallium caches the backbuffer  
> assignment and only queries the current assignment from the x-server  
> if its drawable has been invalidated, which is what the x-server  
> patches do.
> 
> I'd also think you will need both patch sets.

Back buffers are private so a swap for one drawable doesn't need to 
invalidate them for other drawables.

-- 
Ville Syrjälä
syrjala at sci.fi
http://www.sci.fi/~syrjala/


More information about the xorg-devel mailing list