From 179b0e15924ae2757efaece6488ae835ba6436e3 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 19 Oct 2010 13:37:22 +1000 Subject: r600: for 2d tiles we need to align to channels no banks. --- src/radeon_exa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/radeon_exa.c') diff --git a/src/radeon_exa.c b/src/radeon_exa.c index c0f9dc9e..d9301d8a 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -465,7 +465,7 @@ void *RADEONEXACreatePixmap2(ScreenPtr pScreen, int width, int height, int bpe = bitsPerPixel / 8; if (tiling & RADEON_TILING_MACRO) { - height = RADEON_ALIGN(height, info->num_banks * 8); + height = RADEON_ALIGN(height, info->num_channels * 8); pixmap_align = MAX(info->num_banks, (((info->group_bytes / 8) / bpe) * info->num_banks)) * 8 * bpe; } else if (tiling & RADEON_TILING_MICRO) { -- cgit v1.2.3