aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2013-11-03 00:07:31 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-08 12:09:51 -0500
commit4e8058a20a199b22c12154a3df87d3307d3149e6 (patch)
treec03ebf38510052e436e948fb647b41cbdd5f1f86 /drivers/gpu/drm/i915
parent780f18c84cc671071556d37ce198a01feaca00ea (diff)
drm/i915/bdw: add IS_BROADWELL macro
For now it's just equivalent to IS_GEN8, but in the future we might want to change that (e.g., on Gen 7 we have IS_VALLEYVIEW, IS_IVYBRIDGE and IS_HASWELL). Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 99695c517de7..153011a6b885 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1742,6 +1742,7 @@ struct drm_i915_file_private {
1742 (dev)->pdev->device == 0x010A) 1742 (dev)->pdev->device == 0x010A)
1743#define IS_VALLEYVIEW(dev) (INTEL_INFO(dev)->is_valleyview) 1743#define IS_VALLEYVIEW(dev) (INTEL_INFO(dev)->is_valleyview)
1744#define IS_HASWELL(dev) (INTEL_INFO(dev)->is_haswell) 1744#define IS_HASWELL(dev) (INTEL_INFO(dev)->is_haswell)
1745#define IS_BROADWELL(dev) (INTEL_INFO(dev)->gen == 8)
1745#define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile) 1746#define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile)
1746#define IS_HSW_EARLY_SDV(dev) (IS_HASWELL(dev) && \ 1747#define IS_HSW_EARLY_SDV(dev) (IS_HASWELL(dev) && \
1747 ((dev)->pdev->device & 0xFF00) == 0x0C00) 1748 ((dev)->pdev->device & 0xFF00) == 0x0C00)