diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-02-18 14:23:25 +0100 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2016-04-14 13:54:24 +0100 |
commit | 644f364da22f486ef0ab5f50e71d0b6802302a44 (patch) | |
tree | 956e3c3dec2d3821e90656a656327fb811110354 /lib/intel_chipset.c | |
parent | e0e3a063ae3680ad1848dcf16d54f51c8d1f459a (diff) |
lib: Assert we are on i915 from intel_get_drm_devid
I915_PARAM_CHIPSET_ID is a i915-only thing, so if a subtest ends up
calling it when testing another driver, the subtest (or the library)
needs to be fixed.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/intel_chipset.c')
-rw-r--r-- | lib/intel_chipset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/intel_chipset.c b/lib/intel_chipset.c index 0e5b016c..56746b00 100644 --- a/lib/intel_chipset.c +++ b/lib/intel_chipset.c @@ -38,6 +38,7 @@ #include <sys/mman.h> #include "i915_drm.h" +#include "drmtest.h" #include "intel_chipset.h" #include "igt_core.h" @@ -129,6 +130,7 @@ intel_get_drm_devid(int fd) { const char *override; + igt_assert(is_i915_device(fd)); igt_assert(__drm_device_id); override = getenv("INTEL_DEVID_OVERRIDE"); |