mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
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:
parent
e0e3a063ae
commit
644f364da2
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user