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>
This commit is contained in:
Tomeu Vizoso 2016-02-18 14:23:25 +01:00 committed by Daniel Stone
parent e0e3a063ae
commit 644f364da2

View File

@ -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");