diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-06-24 13:29:34 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-01 05:14:44 -0400 |
commit | f5adf94e5fed2468eef4f0c094b66bf834770d7b (patch) | |
tree | 434e98438c4e00286db68cba5179c4eb0f7db12d /drivers/gpu/drm/i915/i915_drv.h | |
parent | 3765f3048651586e2617793e9efe184ff8c79a97 (diff) |
drm/i915: Introduce an HAS_IPS() macro
Follow the trend and don't code conditions with platforms but with
features.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 9e1bf6dcbb2a..cc1d6056ab70 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1474,6 +1474,8 @@ struct drm_i915_file_private { | |||
1474 | #define HAS_PIPE_CXSR(dev) (INTEL_INFO(dev)->has_pipe_cxsr) | 1474 | #define HAS_PIPE_CXSR(dev) (INTEL_INFO(dev)->has_pipe_cxsr) |
1475 | #define I915_HAS_FBC(dev) (INTEL_INFO(dev)->has_fbc) | 1475 | #define I915_HAS_FBC(dev) (INTEL_INFO(dev)->has_fbc) |
1476 | 1476 | ||
1477 | #define HAS_IPS(dev) (IS_ULT(dev)) | ||
1478 | |||
1477 | #define HAS_PIPE_CONTROL(dev) (INTEL_INFO(dev)->gen >= 5) | 1479 | #define HAS_PIPE_CONTROL(dev) (INTEL_INFO(dev)->gen >= 5) |
1478 | 1480 | ||
1479 | #define HAS_DDI(dev) (INTEL_INFO(dev)->has_ddi) | 1481 | #define HAS_DDI(dev) (INTEL_INFO(dev)->has_ddi) |