sna: Skip an async flip request to the same bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-02-16 11:22:26 +00:00
parent 93b94b96c6
commit 1c16a91aaf
1 changed files with 3 additions and 0 deletions

View File

@ -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) {