[Intel-gfx] [i-g-t PATCH v1 03/14] lib: Expose is_i915_device

Tomeu Vizoso tomeu.vizoso at collabora.com
Wed Mar 2 14:00:10 UTC 2016


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 at collabora.com>
---

 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 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
-- 
2.5.0



More information about the Intel-gfx mailing list