summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-10-19 13:37:22 +1000
committerDave Airlie <airlied@redhat.com>2010-10-19 13:37:59 +1000
commit179b0e15924ae2757efaece6488ae835ba6436e3 (patch)
treef9e3e218f612e270bbacc7698dff8d60a6cfb83d
parent809cacbc23ab37aa7952665f9b2e37c03a34f173 (diff)
r600: for 2d tiles we need to align to channels no banks.
-rw-r--r--src/radeon_exa.c2
1 files changed, 1 insertions, 1 deletions
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) {