From 3fee80efcfb41cc7f25afa968bb38e68faa6c34c Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 9 Feb 2016 10:16:51 +0100 Subject: lib: add igt_require_intel Add function that requires that the driver we are talking to is i915. This allows us to skip subtests that are specific to that driver. Signed-off-by: Tomeu Vizoso Reviewed-by: Daniel Stone Acked-by: Daniel Vetter --- lib/drmtest.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 02ba57ee..a0669dd5 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -379,3 +379,8 @@ int drm_open_driver_render(int chipset) return fd; } + +void igt_require_intel(int fd) +{ + igt_require(is_i915_device(fd) && has_known_intel_chipset(fd)); +} -- cgit v1.2.3