summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Beckett <robert.beckett@intel.com>2014-01-23 14:23:14 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-24 14:35:55 +0200
commit5907f5fb6a16ae70cde25bcf4be201a93dfa0b9c (patch)
treee4a2254bc910efb9376aab1cf6b3c3565f847ece
parent1fada4cc6a49fa8fb4530bba8fb0cfb42708fc6a (diff)
drm/i915/skl: i915_swizzle_info gen9 fix
Fix ARB_MODE register read for gen >= 8 in i915_swizzle_info Reviewed-by: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Robert Beckett <robert.beckett@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 2cbc85f3b237..707eddd1825f 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -1986,7 +1986,7 @@ static int i915_swizzle_info(struct seq_file *m, void *data)
I915_READ(MAD_DIMM_C2));
seq_printf(m, "TILECTL = 0x%08x\n",
I915_READ(TILECTL));
- if (IS_GEN8(dev))
+ if (INTEL_INFO(dev)->gen >= 8)
seq_printf(m, "GAMTARBMODE = 0x%08x\n",
I915_READ(GAMTARBMODE));
else