From 9e7311516da81ab45484b291ec668503c5ded0bb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 13 Dec 2012 14:40:25 +0000 Subject: sna/gen2: Align surface sizes to an even tile Makes this 855gm much happier. Signed-off-by: Chris Wilson --- src/sna/kgem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sna') diff --git a/src/sna/kgem.c b/src/sna/kgem.c index d5011154..f8b3cff2 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1223,10 +1223,10 @@ static uint32_t kgem_surface_size(struct kgem *kgem, if (tiling) { if (kgem->gen < 030) { tile_width = 128; - tile_height = 16; + tile_height = 32; } else { tile_width = 512; - tile_height = 8; + tile_height = 16; } } else { tile_width = 2 * bpp >> 3; @@ -1292,12 +1292,12 @@ static uint32_t kgem_aligned_height(struct kgem *kgem, uint32_t tile_height; if (kgem->gen <= 030) { - tile_height = tiling ? kgem->gen < 030 ? 16 : 8 : 1; + tile_height = tiling ? kgem->gen < 030 ? 32 : 16 : 1; } else switch (tiling) { /* XXX align to an even tile row */ default: case I915_TILING_NONE: - tile_height = 2; + tile_height = 1; break; case I915_TILING_X: tile_height = 16; -- cgit v1.2.3