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 <tomeu.vizoso@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Tomeu Vizoso 2016-02-18 14:25:43 +01:00 committed by Daniel Stone
parent 6755757e9f
commit e0e3a063ae
2 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,7 @@ static int __get_drm_device_name(int fd, char *name)
return -1; return -1;
} }
static bool is_i915_device(int fd) bool is_i915_device(int fd)
{ {
int ret; int ret;
char name[5] = ""; char name[5] = "";

View File

@ -84,6 +84,8 @@ void gem_quiescent_gpu(int fd);
void igt_require_intel(int fd); void igt_require_intel(int fd);
bool is_i915_device(int fd);
/** /**
* do_or_die: * do_or_die:
* @x: command * @x: command