projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f03a616
)
drm: Complain if pageflip fails
author
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 18 Jan 2012 16:47:41 +0000
(11:47 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 18 Jan 2012 16:47:41 +0000
(11:47 -0500)
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."
src/compositor-drm.c
patch
|
blob
|
history
diff --git
a/src/compositor-drm.c
b/src/compositor-drm.c
index
c07eb2d
..
b5914a4
100644
(file)
--- a/
src/compositor-drm.c
+++ b/
src/compositor-drm.c
@@
-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;
}