diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-09-12 14:49:16 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-20 17:11:18 -0400 |
commit | acc83eb5a1e0ae7dbbf89ca2a1a943ade224bb84 (patch) | |
tree | c603b89a31370882189415a098532e48b1063a67 /drivers/gpu | |
parent | 6fdd4d98e56e0919bb324c2ab1ff66395cf3b385 (diff) |
drm/i915: fix swizzling on gen6+
Fixes tests/gem_tiled_pread on my snb. I know, mesa doesn't use this
on gen6+, but I also hate failing testcases.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_tiling.c | 5 |
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 99c4faa59d8f..103da6f2d03b 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 >= 5) { | 95 | if (INTEL_INFO(dev)->gen >= 6) { |
96 | swizzle_x = I915_BIT_6_SWIZZLE_NONE; | ||
97 | swizzle_y = I915_BIT_6_SWIZZLE_NONE; | ||
98 | } else if (IS_GEN5(dev)) { | ||
96 | /* On Ironlake whatever DRAM config, GPU always do | 99 | /* On Ironlake whatever DRAM config, GPU always do |
97 | * same swizzling setup. | 100 | * same swizzling setup. |
98 | */ | 101 | */ |