aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-09-19 14:01:40 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-19 14:41:00 -0400
commit040d2baa6229d50c406340035766c4e99725bf3d (patch)
treeb89913b763b2fa552a737da48508381344931fba /drivers/gpu/drm/i915/i915_gem.c
parent3ccfd19dea7c5c85aa4b1f929a97a02b026ab356 (diff)
drm/i915: s/HAS_L3_GPU_CACHE/HAS_L3_DPF
We'd only ever used this define to denote whether or not we have the dynamic parity feature (DPF) and never to determine whether or not L3 exists. Baytrail is a good example of where L3 exists, and not DPF. This patch provides clarify in the code for future use cases which might want to actually query whether or not L3 exists. v2: Add /* DPF == dynamic parity feature */ Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 83464aae909f..f1779b352f59 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4230,7 +4230,7 @@ int i915_gem_l3_remap(struct intel_ring_buffer *ring, int slice)
4230 u32 *remap_info = dev_priv->l3_parity.remap_info[slice]; 4230 u32 *remap_info = dev_priv->l3_parity.remap_info[slice];
4231 int i, ret; 4231 int i, ret;
4232 4232
4233 if (!HAS_L3_GPU_CACHE(dev) || !remap_info) 4233 if (!HAS_L3_DPF(dev) || !remap_info)
4234 return 0; 4234 return 0;
4235 4235
4236 ret = intel_ring_begin(ring, GEN7_L3LOG_SIZE / 4 * 3); 4236 ret = intel_ring_begin(ring, GEN7_L3LOG_SIZE / 4 * 3);