drm/i915: Store gen_mask inside the static device info
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 Feb 2018 08:19:28 +0000 (08:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 Feb 2018 16:23:09 +0000 (16:23 +0000)
commitbc76298e68e791f878d76f9b7a911713c85b2843
tree86b8146ae173e35441ff57157cf283699f5dadb1
parent62d4028fb0b9ce6250d66c39ebe887522d77eb3c
drm/i915: Store gen_mask inside the static device info

Rather than deriving the gen_mask from the static intel_device_info->gen
at runtime, pre-fill it in the static data.

v2: Undefine local macros at end of their scope.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180215081930.11477-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_pci.c