OSDN Git Service

intel: Fixup for the fix for relaxed tiling on gen2
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Feb 2011 18:11:07 +0000 (19:11 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Feb 2011 18:11:33 +0000 (19:11 +0100)
This is Fail.

First patch to libdrm, and I've borked it up.

Noticed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
intel/intel_bufmgr_gem.c

index 9b324d9..f5ab0a6 100644 (file)
@@ -767,7 +767,7 @@ drm_intel_gem_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, const char *name,
                else if (tiling == I915_TILING_Y)
                        height_alignment = 32;
                /* i8xx has a interleaved 2-row tile layout */
-               if (IS_GEN2(bufmgr_gem))
+               if (IS_GEN2(bufmgr_gem) && tiling != I915_TILING_NONE)
                        height_alignment *= 2;
                aligned_y = ALIGN(y, height_alignment);