[RFC] dri2: Expose API for drivers to set drawable swap limit.

Jesse Barnes jbarnes at virtuousgeek.org
Wed Jul 14 08:37:27 PDT 2010


On Wed, 14 Jul 2010 16:20:40 +0300
Pauli Nieminen <ext-pauli.nieminen at nokia.com> wrote:

> This allows ddx to set swap_limit if there is variable number of
> buffers for drawable.
> 
> This allows ddx driver to select triple buffering to avoid problems if
> frame rate is close to VSYNC rate. While driver may want to keep
> composite swaps double buffered to save memory.
> 
> Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
> ---

Have you tested this?  I think there are a few things on the server
side that need work to make triple (or more) buffering work.  Here's
the patch I last used to work on it...

To make things fast, you'll need some extra buffers allocated in the
DRI2 drawable, and you'll need to switch between them at swapbuffers
time, along with upping the swap_limit.

-- 
Jesse Barnes, Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xserver-dri2-triple-buffer-2.patch
Type: text/x-patch
Size: 2369 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100714/ce4d0764/attachment.bin>


More information about the xorg-devel mailing list