summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2012-07-24 20:47:31 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-07-25 18:23:56 +0200
commite1ef7cc299839e68dae3f1843f62e52acda04538 (patch)
treebebf6699022aa920bcbb02adf3c2536194f225f4 /drivers/gpu/drm/i915/i915_drv.h
parent2e4291e0bc6cff9514515a899a8158ea62b3ff90 (diff)
downloadtalos-op-linux-e1ef7cc299839e68dae3f1843f62e52acda04538.tar.gz
talos-op-linux-e1ef7cc299839e68dae3f1843f62e52acda04538.zip
drm/i915: Macro to determine DPF support
Originally I had a macro specifically for DPF support, and Daniel, with good reason asked me to change it to this. It's not the way I would have gone (and indeed I didn't), but for now there is no distinction as all platforms with L3 also have DPF. Note: The good reasons are that dpf is a l3$ feature (at least on currrent hw), hence I don't expect one to go without the other. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> [danvet: added note] 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.h2
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 f1765893da60..35a90da64149 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1114,6 +1114,8 @@ struct drm_i915_file_private {
#define HAS_FORCE_WAKE(dev) (INTEL_INFO(dev)->has_force_wake)
+#define HAS_L3_GPU_CACHE(dev) (IS_IVYBRIDGE(dev))
+
#include "i915_trace.h"
/**
OpenPOWER on IntegriCloud