[Intel-gfx] [PATCH] drm/i915: Add page flipping ioctl
Jesse Barnes
jbarnes at virtuousgeek.org
Thu Nov 12 18:41:28 CET 2009
On Thu, 12 Nov 2009 12:36:11 -0500
Kristian Høgsberg <krh at bitplanet.net> wrote:
> This adds a page flipping ioctl to the KMS API. The ioctl takes an
> fb ID and a ctrc ID and flips the crtc to the given fb at the next
> vblank. The ioctl returns immediately but the flip doesn't happen
> until after any rendering that's currently queued up against the new
> framebuffer is done. After submitting a page flip, any execbuffer
> involving the old front buffer will block until the flip is completed.
>
> Optionally, a vblank event can be generated when the swap eventually
> happens.
>
> Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>
> Okay, here we go again. Page flip ioctl, this time, with blocking in
> the kernel and optional events to userspace. Blocking in the kernel
> doesn't hold any locks and lets other processes use the GPU while
> we're waiting for the flip to finish.
http://www.youtube.com/watch?v=J---aiyznGQ
That said: Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
More information about the Intel-gfx
mailing list