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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---

 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux