[PATCH] fb: Use an indirect reference to the Screen Pixmap

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 14 23:31:52 PDT 2011


On Fri, 15 Apr 2011 08:26:05 +1000, Dave Airlie <airlied at gmail.com> wrote:
> Why does the driver change the ScreenPixmap ptr? surely it would be
> just ModifyPixmapHeader
> or swapping the backing bo, or did I miss something in the explaination?

In the case of pageflipping, we are replacing the ScreenPixmap with that of
a backing pixmap from a client, which is likely to be flipped again very
shortly. Exchanging the Pixmap pointers at that point seemed like a
natural way of exchanging all the resource tracking associated with the
pixmap. Similarly for resize, whose only difference (in this regard) is
that the two pixmaps are no longer the same size.

I was just hoping for too much from the interfaces called SetScreenPixmap
and SetWindowPixmap.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the xorg-devel mailing list