drm/i915: Introduce IS_GEN macro
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 10 May 2016 09:57:08 +0000 (10:57 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 11 May 2016 11:27:28 +0000 (12:27 +0100)
commitac657f6461e5f7e0e8cb308b46b63ba71a6f6906
treecfaf02e4f7b881ab1abef91b5c44804b59401884
parentac208a8b9a5553acace164870b8b7e86f024b99f
drm/i915: Introduce IS_GEN macro

To be used for more efficient Gen range checking.

v2: Remove spurious chunk. (Chris Wilson)
v3: Rebase.
v4: Renamed from INTEL_GEN_RANGE and added GEN_FOREVER.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v3)
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1462874228-6601-1-git-send-email-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_fbc.c
drivers/gpu/drm/i915/intel_ringbuffer.c