diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-16 11:22:26 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-16 12:00:20 +0000 |
commit | 1c16a91aafa2dff3b41dafa31f233316b595f124 (patch) | |
tree | e2e70d5a30ba05d631bf48724e617ff951f1e7e5 /src | |
parent | 93b94b96c6518365fc082a33b17980b018f1e378 (diff) |
sna: Skip an async flip request to the same bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_display.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |