mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-24 08:16:10 +00:00
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:
parent
6755757e9f
commit
e0e3a063ae
@ -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] = "";
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user