mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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:
parent
b21de497d1
commit
a583492ea2
@ -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,7 +610,8 @@ flip_all_crtcs (CoglDisplay *display, CoglFlipKMS *flip, int fb_id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
flip->pending++;
|
if (ret == 0)
|
||||||
|
flip->pending++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kms_renderer->page_flips_not_supported && needs_flip)
|
if (kms_renderer->page_flips_not_supported && needs_flip)
|
||||||
|
Loading…
Reference in New Issue
Block a user