summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-06-29 08:28:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-06-30 23:06:47 +0100
commitd308bb082d429eb25dfd2844bcbafe722660a1ff (patch)
treec0524698b1a41ade66bac888427e87cc1335becd /lib/drmtest.c
parent0404de4f223c108cf181f6c9a26fdc84fc608fc5 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c2
1 files changed, 1 insertions, 1 deletions
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;