[PATCH] dri2: Pass AsyncSwap [swap_interval=0] requests to the drivers

Jesse Barnes jbarnes at virtuousgeek.org
Thu Feb 23 08:17:59 PST 2012


On Tue, 21 Feb 2012 09:55:43 +0000
Chris Wilson <chris at chris-wilson.co.uk> wrote:

> Currently, the midlayer dri2 code intercepts swap_interval=0 (ala
> vblank_mode=0) SwapBuffers and converts it to a CopyRegion request.
> This prevents the backend from doing anything meaningful in this case
> and typically ends up being vsync'ed since the drivers cannot distinguish
> it from a regular CopyRegion request.
> 
> v2: Only invalidate the drawable on the behest of the backend, so that
> existing behaviour of not invalidating for async blit copies is
> preserved, suggested by Simon Farnsworh. And rebase for the intervening
> 12 months since v1.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Jesse Barnes <jbarnes at virtuousgeek.org>
> Cc: Kristian Høgsberg <krh at bitplanet.net>
> Cc: Ville Syrjälä <ville.syrjala at nokia.com>
> Cc: Dave Airlie <airlied at redhat.com>
> Cc: Michel Dänzer <michel at daenzer.net>
> Cc: Simon Farnsworth <simon.farnsworth at onelan.co.uk>

Yeah I think I reviewed this one before.  Looks good.

Reviewed-by: Jesse Barnes <jbarnes at virtuousgeek.org>

-- 
Jesse Barnes, Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120223/98f589de/attachment.pgp>


More information about the xorg-devel mailing list