From 1c16a91aafa2dff3b41dafa31f233316b595f124 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 16 Feb 2015 11:22:26 +0000 Subject: sna: Skip an async flip request to the same bo Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index ecbdf4b9..de0cbec1 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -5449,6 +5449,9 @@ sna_page_flip(struct sna *sna, assert(crtc->bo->refcnt >= crtc->bo->active_scanout); assert(crtc->flip_bo == NULL); + if (data == NULL && crtc->bo == bo) + goto next_crtc; + arg.crtc_id = crtc->id; arg.fb_id = get_fb(sna, bo, width, height); if (arg.fb_id == 0) { -- cgit v1.2.3