diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-04-06 19:16:16 (GMT) |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-14 00:05:43 (GMT) |
commit | 37808944e4d97b651de7f18a868513542de87aa0 (patch) | |
tree | 30710d6d985fa5674efdde98bd5154eedf4ef4a8 /drivers/gpu/drm/i915 | |
parent | eceae4817e01a16f1487d8b47ac2f56c68f3b330 (diff) | |
download | linux-fsl-qoriq-37808944e4d97b651de7f18a868513542de87aa0.tar.xz |
drm/i915: add swizzle/tiling support for Ivy Bridge
Treat it like Ironlake and Sandy Bridge.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_tiling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c index 281ad3d..82d70fd 100644 --- a/drivers/gpu/drm/i915/i915_gem_tiling.c +++ b/drivers/gpu/drm/i915/i915_gem_tiling.c @@ -92,7 +92,7 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev) uint32_t swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN; uint32_t swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN; - if (IS_GEN5(dev) || IS_GEN6(dev)) { + if (INTEL_INFO(dev)->gen >= 5) { /* On Ironlake whatever DRAM config, GPU always do * same swizzling setup. */ |