diff options
author | Dave Airlie <airlied@redhat.com> | 2010-10-19 13:37:22 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-19 13:37:59 +1000 |
commit | 179b0e15924ae2757efaece6488ae835ba6436e3 (patch) | |
tree | f9e3e218f612e270bbacc7698dff8d60a6cfb83d /src | |
parent | 809cacbc23ab37aa7952665f9b2e37c03a34f173 (diff) |
r600: for 2d tiles we need to align to channels no banks.
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_exa.c | 2 |
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) { |