kms-winsys: don't wait for a flip when page flipping fails

If we get EACCES from drmPageFlip we're not going to get
a flip event and shouldn't wait for one.

This commit changes the EACCES path to silently ignore the
failed flip request and just clean up the fb.

https://bugzilla.gnome.org/show_bug.cgi?id=756926
This commit is contained in:
Ray Strode 2015-10-21 15:47:01 -04:00
parent b21de497d1
commit a583492ea2

View File

@ -590,7 +590,7 @@ flip_all_crtcs (CoglDisplay *display, CoglFlipKMS *flip, int fb_id)
for (l = kms_display->crtcs; l; l = l->next) for (l = kms_display->crtcs; l; l = l->next)
{ {
CoglKmsCrtc *crtc = l->data; CoglKmsCrtc *crtc = l->data;
int ret; int ret = 0;
if (crtc->count == 0 || crtc->ignore) if (crtc->count == 0 || crtc->ignore)
continue; continue;
@ -610,6 +610,7 @@ flip_all_crtcs (CoglDisplay *display, CoglFlipKMS *flip, int fb_id)
} }
} }
if (ret == 0)
flip->pending++; flip->pending++;
} }