projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a65087a
)
drmtest: use do_or_die
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 1 Oct 2012 09:34:10 +0000
(11:34 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 1 Oct 2012 09:34:10 +0000
(11:34 +0200)
lib/drmtest.c
patch
|
blob
|
history
diff --git
a/lib/drmtest.c
b/lib/drmtest.c
index
8df9797
..
585ebe4
100644
(file)
--- a/
lib/drmtest.c
+++ b/
lib/drmtest.c
@@
-798,11
+798,10
@@
unsigned int kmstest_create_fb(int fd, int width, int height, int bpp,
assert(!status);
cairo_destroy(cr);
-
ret =
drmModeAddFB(fd, width, height, depth, bpp,
- fb_info->stride,
-
fb_info->gem_handle, &fb_id
);
+
do_or_die(
drmModeAddFB(fd, width, height, depth, bpp,
+
fb_info->stride,
+
fb_info->gem_handle, &fb_id)
);
- assert(ret == 0);
cairo_surface_destroy(surface);
fb_info->fb_id = fb_id;