[Intel-gfx] [PATCH 07/19] drm/i915: add swizzle/tiling support for Ivy Bridge

2011-04-28 Thread Jesse Barnes
Treat it like Ironlake and Sandy Bridge.

Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org
---
 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 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.
 */
-- 
1.7.4.1

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] [PATCH 07/19] drm/i915: add swizzle/tiling support for Ivy Bridge

2011-04-28 Thread Keith Packard
On Thu, 28 Apr 2011 15:12:53 -0700, Jesse Barnes jbar...@virtuousgeek.org 
wrote:
 Treat it like Ironlake and Sandy Bridge.
 
 Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org

Should use gen = 5?

-- 
keith.pack...@intel.com


pgptprXAz4FhS.pgp
Description: PGP signature
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] [PATCH 07/19] drm/i915: add swizzle/tiling support for Ivy Bridge

2011-04-28 Thread Jesse Barnes
On Thu, 28 Apr 2011 15:42:13 -0700
Keith Packard kei...@keithp.com wrote:

 On Thu, 28 Apr 2011 15:12:53 -0700, Jesse Barnes jbar...@virtuousgeek.org 
 wrote:
  Treat it like Ironlake and Sandy Bridge.
  
  Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org
 
 Should use gen = 5?

Yeah, probably better.

-- 
Jesse Barnes, Intel Open Source Technology Center
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx