From e0e3a063ae3680ad1848dcf16d54f51c8d1f459a Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 18 Feb 2016 14:25:43 +0100 Subject: lib: Expose is_i915_device Lib and test code can use this function to avoid i915-specific behavior when running on other drivers. Signed-off-by: Tomeu Vizoso Reviewed-by: Daniel Stone Acked-by: Daniel Vetter --- lib/drmtest.c | 2 +- lib/drmtest.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index a0669dd5..1d350e72 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -90,7 +90,7 @@ static int __get_drm_device_name(int fd, char *name) return -1; } -static bool is_i915_device(int fd) +bool is_i915_device(int fd) { int ret; char name[5] = ""; diff --git a/lib/drmtest.h b/lib/drmtest.h index 5d38f142..c391464d 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -84,6 +84,8 @@ void gem_quiescent_gpu(int fd); void igt_require_intel(int fd); +bool is_i915_device(int fd); + /** * do_or_die: * @x: command -- cgit v1.2.3