summaryrefslogtreecommitdiff
path: root/lib/drmtest.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-01-19 09:42:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-01-19 09:47:03 +0000
commita29f28eba975388aed43c83dd6ed3ec2a869f4ce (patch)
tree7a12b748ebf87d4028a78951af52a391eea749c7 /lib/drmtest.h
parent20d6e0f41b3b70a89946e5271bc4ffa7695be1b0 (diff)
igt/drv_module_reload: Check more carefully for a live driver
As drm_open_any() now quietly fails if there is no driver, this nullifies the effectiviness of using gem_exec_nop as the test for a good reload. Combine with gem_alive (and guarantee that gem_alive can detect a dead driver, putting lie to commit 032f30cb38bb03562ee7fde19cd278b1d8ac31a9 Author: Thomas Wood <thomas.wood@intel.com> Date: Tue Jan 13 13:33:57 2015 +0000 lib: remove unnecessary checks on the drm_open_any return value ) first. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88573 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r--lib/drmtest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h
index b39b45af..508cc83a 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -71,6 +71,7 @@ static inline void *igt_mmap64(void *addr, size_t length, int prot, int flags,
#define ALIGN(v, a) (((v) + (a)-1) & ~((a)-1))
int drm_get_card(void);
+int __drm_open_any(void);
int drm_open_any(void);
int drm_open_any_master(void);
int drm_open_any_render(void);