mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-04 05:58:21 +02:00
drm: Complain if pageflip fails
We still don't handle the error in any way, but there's not much we can do. It's typically a case of not having drm master."
This commit is contained in:
parent
f03a616c21
commit
54f14c3c3e
1 changed files with 6 additions and 3 deletions
|
|
@ -112,9 +112,12 @@ drm_output_present(struct weston_output *output_base)
|
|||
fb_id = output->fb_id[output->current ^ 1];
|
||||
}
|
||||
|
||||
drmModePageFlip(c->drm.fd, output->crtc_id,
|
||||
fb_id,
|
||||
DRM_MODE_PAGE_FLIP_EVENT, output);
|
||||
if (drmModePageFlip(c->drm.fd, output->crtc_id,
|
||||
fb_id,
|
||||
DRM_MODE_PAGE_FLIP_EVENT, output) < 0) {
|
||||
fprintf(stderr, "queueing pageflip failed: %m\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue