From: Daniel Vetter Date: Thu, 22 Sep 2011 20:20:53 +0000 (+0200) Subject: drm/i915: y tiling on i915G/i915GM is different X-Git-Tag: submit/1.0/20121108.012404~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=194aa1bee632c6dce19238664eb8373e3483de55;p=profile%2Fivi%2Flibdrm.git drm/i915: y tiling on i915G/i915GM is different Luckily the kernel has become extremely paranoid about such matters. Signed-off-by: Daniel Vetter --- diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 22617ec..1baa0b3 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -275,7 +275,8 @@ drm_intel_gem_bo_tile_pitch(drm_intel_bufmgr_gem *bufmgr_gem, if (*tiling_mode == I915_TILING_NONE) return ALIGN(pitch, 64); - if (*tiling_mode == I915_TILING_X) + if (*tiling_mode == I915_TILING_X + || (IS_915(bufmgr_gem) && *tiling_mode == I915_TILING_Y)) tile_width = 512; else tile_width = 128; @@ -764,7 +765,8 @@ drm_intel_gem_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, const char *name, if (IS_GEN2(bufmgr_gem) && tiling != I915_TILING_NONE) height_alignment = 16; - else if (tiling == I915_TILING_X) + else if (tiling == I915_TILING_X + || (IS_915(bufmgr_gem) && tiling == I915_TILING_Y)) height_alignment = 8; else if (tiling == I915_TILING_Y) height_alignment = 32;