aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2012-10-02 18:43:46 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-03 03:15:29 -0400
commit7f6613412c0bf5945a78967e92bdcb00394215f4 (patch)
tree872fa2a65796bb45fb2211a85ca3cab3331bc4d6
parent232351777cd0fe2341f917d28bf130df2b44bf8a (diff)
drm/i915: set swizzling to none on VLV
We don't have bit 6 swizzling on VLV, so this function is easy. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/i915_gem_tiling.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index 8093ecd2ea31..71084ed0aa30 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -92,7 +92,10 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
92 uint32_t swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN; 92 uint32_t swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN;
93 uint32_t swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN; 93 uint32_t swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
94 94
95 if (INTEL_INFO(dev)->gen >= 6) { 95 if (IS_VALLEYVIEW(dev)) {
96 swizzle_x = I915_BIT_6_SWIZZLE_NONE;
97 swizzle_y = I915_BIT_6_SWIZZLE_NONE;
98 } else if (INTEL_INFO(dev)->gen >= 6) {
96 uint32_t dimm_c0, dimm_c1; 99 uint32_t dimm_c0, dimm_c1;
97 dimm_c0 = I915_READ(MAD_DIMM_C0); 100 dimm_c0 = I915_READ(MAD_DIMM_C0);
98 dimm_c1 = I915_READ(MAD_DIMM_C1); 101 dimm_c1 = I915_READ(MAD_DIMM_C1);