diff mbox

[i-g-t,v1,03/14] lib: Expose is_i915_device

Message ID 1456927221-32421-4-git-send-email-tomeu.vizoso@collabora.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tomeu Vizoso March 2, 2016, 2 p.m. UTC
Lib and test code can use this function to avoid i915-specific behavior
when running on other drivers.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---

 lib/drmtest.c | 2 +-
 lib/drmtest.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/drmtest.c b/lib/drmtest.c
index bb9ca507a922..2ed84a01083a 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 af7da37d5ff8..1d73115fb6bd 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