diff options
author | Imre Deak <imre.deak@intel.com> | 2012-10-16 17:34:35 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-16 16:51:56 +0200 |
commit | 21393431f191d3c51b98f5acd507418b126f6cf7 (patch) | |
tree | bff945c3e1066bd885f40a2bf532d99896ba540e /lib | |
parent | dc3ac00f033245155c765f308fe76088f9f5bfc0 (diff) |
drmtest: add function to remove an DRM FB
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/drmtest.c | 5 | ||||
-rw-r--r-- | lib/drmtest.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 125bfe91..c309851c 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -829,6 +829,11 @@ unsigned int kmstest_create_fb(int fd, int width, int height, int bpp, return fb_id; } +void kmstest_remove_fb(int fd, int fb_id) +{ + do_or_die(drmModeRmFB(fd, fb_id)); +} + void kmstest_dump_mode(drmModeModeInfo *mode) { printf(" %s %d %d %d %d %d %d %d %d %d 0x%x 0x%x %d\n", diff --git a/lib/drmtest.h b/lib/drmtest.h index 738d1a2e..fcb10bb9 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -105,6 +105,7 @@ unsigned int kmstest_create_fb(int fd, int width, int height, int bpp, struct kmstest_fb *fb_info, kmstest_paint_func paint_func, void *func_arg); +void kmstest_remove_fb(int fd, int fb_id); void kmstest_dump_mode(drmModeModeInfo *mode); inline static void _do_or_die(const char *function, int line, int ret) |