mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
drmtest: use do_or_die
This commit is contained in:
parent
a65087a26e
commit
9d1a3587ac
@ -798,11 +798,10 @@ unsigned int kmstest_create_fb(int fd, int width, int height, int bpp,
|
|||||||
assert(!status);
|
assert(!status);
|
||||||
cairo_destroy(cr);
|
cairo_destroy(cr);
|
||||||
|
|
||||||
ret = drmModeAddFB(fd, width, height, depth, bpp,
|
do_or_die(drmModeAddFB(fd, width, height, depth, bpp,
|
||||||
fb_info->stride,
|
fb_info->stride,
|
||||||
fb_info->gem_handle, &fb_id);
|
fb_info->gem_handle, &fb_id));
|
||||||
|
|
||||||
assert(ret == 0);
|
|
||||||
cairo_surface_destroy(surface);
|
cairo_surface_destroy(surface);
|
||||||
|
|
||||||
fb_info->fb_id = fb_id;
|
fb_info->fb_id = fb_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user