Message ID | 1304028785-10583-8-git-send-email-jbarnes@virtuousgeek.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, 28 Apr 2011 15:12:53 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote: > Treat it like Ironlake and Sandy Bridge. > > Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Should use gen >= 5?
On Thu, 28 Apr 2011 15:42:13 -0700 Keith Packard <keithp@keithp.com> wrote: > On Thu, 28 Apr 2011 15:12:53 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote: > > Treat it like Ironlake and Sandy Bridge. > > > > Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> > > Should use gen >= 5? Yeah, probably better.
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c index dfb682b..418015f 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 (IS_GEN5(dev) || IS_GEN6(dev) || IS_GEN7(dev)) { /* On Ironlake whatever DRAM config, GPU always do * same swizzling setup. */
Treat it like Ironlake and Sandy Bridge. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> --- drivers/gpu/drm/i915/i915_gem_tiling.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)