projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2925e5
)
modetest: Check error message from pageflip ioctl
author
Jakob Bornecrantz
<jakob@vmware.com>
Wed, 28 Sep 2011 21:34:09 +0000
(23:34 +0200)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Wed, 19 Oct 2011 11:35:07 +0000
(13:35 +0200)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
tests/modetest/modetest.c
patch
|
blob
|
history
diff --git
a/tests/modetest/modetest.c
b/tests/modetest/modetest.c
index
f6fdcf4
..
35045c8
100644
(file)
--- a/
tests/modetest/modetest.c
+++ b/
tests/modetest/modetest.c
@@
-608,8
+608,12
@@
set_mode(struct connector *c, int count, int page_flip)
if (c[i].mode == NULL)
continue;
- drmModePageFlip(fd, c[i].crtc, other_fb_id,
- DRM_MODE_PAGE_FLIP_EVENT, &c[i]);
+ ret = drmModePageFlip(fd, c[i].crtc, other_fb_id,
+ DRM_MODE_PAGE_FLIP_EVENT, &c[i]);
+ if (ret) {
+ fprintf(stderr, "failed to page flip: %s\n", strerror(errno));
+ return;
+ }
gettimeofday(&c[i].start, NULL);
c[i].swap_count = 0;
c[i].fb_id[0] = fb_id;