[Intel-gfx] [i-g-t PATCH v2 04/17] lib: Expose is_i915_device
Tomeu Vizoso
tomeu.vizoso at collabora.com
Tue Mar 8 14:51:26 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>
---
Changes in v2: None
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 2f847c85c30a..10304bbb3f96 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