aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2009-06-05 03:38:41 -0400
committerEric Anholt <eric@anholt.net>2009-06-05 07:34:30 -0400
commit2cce0d8740f0d1454d012401257d96c513ce358f (patch)
tree805f344d0c1e4d7704b0095684f52ef624c50289
parente170b030dcd6aed11dde2d124c09991ec771f529 (diff)
drm/i915: Disable tiling on IGDNG for now
Swizzle bit detection not working right on it. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--drivers/gpu/drm/i915/i915_gem_tiling.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index 540dd336e6ec..07d976bf4931 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -170,6 +170,13 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
170 } 170 }
171 } 171 }
172 172
173 /* FIXME: check with memory config on IGDNG */
174 if (IS_IGDNG(dev)) {
175 DRM_ERROR("disable tiling on IGDNG...\n");
176 swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN;
177 swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
178 }
179
173 dev_priv->mm.bit_6_swizzle_x = swizzle_x; 180 dev_priv->mm.bit_6_swizzle_x = swizzle_x;
174 dev_priv->mm.bit_6_swizzle_y = swizzle_y; 181 dev_priv->mm.bit_6_swizzle_y = swizzle_y;
175} 182}