summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-05-19 14:42:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-05-19 19:02:27 +0100
commite1a6d252495d71c1bd86fdc5f293cc10d6c28e6c (patch)
tree59b97cc69e2569e01268a44eaaacad4bf3306e72
parente770178c9e8a6792ea6459e6ec7c79b283b268e1 (diff)
lib: Remove early has_known_intel_chipset() check
When opening a specific driver, open that driver. Once we have the device fd, we can then do feature checks that the tests *actually* require. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--lib/drmtest.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 040ca39c..70fd64c9 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -118,24 +118,6 @@ bool is_vc4_device(int fd)
return __is_device(fd, "vc4");
}
-static bool has_known_intel_chipset(int fd)
-{
- struct drm_i915_getparam gp;
- int devid = 0;
-
- memset(&gp, 0, sizeof(gp));
- gp.param = I915_PARAM_CHIPSET_ID;
- gp.value = &devid;
-
- if (ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp)))
- return false;
-
- if (!intel_gen(devid))
- return false;
-
- return true;
-}
-
static char _forced_driver[16] = "";
/**
@@ -636,7 +618,7 @@ void igt_require_amdgpu(int fd)
void igt_require_intel(int fd)
{
- igt_require(is_i915_device(fd) && has_known_intel_chipset(fd));
+ igt_require(is_i915_device(fd));
}
void igt_require_vc4(int fd)