From d308bb082d429eb25dfd2844bcbafe722660a1ff Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 29 Jun 2016 08:28:58 +0100 Subject: lib: Start weaning off defunct intel_chipset.h Several years ago we made the plan of only having one canonical source for i915_pciids.h, the kernel and everyone importing their definitions from that. For consistency, we style the intel_device_info after the kernel, most notably using a generation mask and a per-codename bitfield. This first step converts looking up the generation for a devid tree from a massive if(devid)-chain to a (cached) table lookup. Signed-off-by: Chris Wilson --- lib/drmtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 884fe7cc..62dd042c 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -127,7 +127,7 @@ static bool has_known_intel_chipset(int fd) if (ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp))) return false; - if (!IS_INTEL(devid)) + if (!intel_gen(devid)) return false; __drm_device_id = devid; -- cgit v1.2.3