summaryrefslogtreecommitdiff
path: root/src/radeon_dri.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-03-12 03:42:40 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-03-12 03:42:40 -0400
commitf356ca7795531e0c080775efb598141eb7db44ba (patch)
tree5f0e58e31c95ff96a9bafebd8b61d04c9ff482d7 /src/radeon_dri.c
parentef69336584c45e35aabb797a06c4030e75d66507 (diff)
RS600: fix page table size for rs600 as well
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r--src/radeon_dri.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index 1bfb8964..9c9fc7ff 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -2328,10 +2328,11 @@ int RADEONDRIGetPciAperTableSize(ScrnInfoPtr pScrn)
num_pages = (info->dri->pciAperSize * 1024 * 1024) / 4096;
- if (info->ChipFamily < CHIP_FAMILY_R600)
- ret_size = num_pages * sizeof(unsigned int);
+ if ((info->ChipFamily >= CHIP_FAMILY_R600) ||
+ (info->ChipFamily == CHIP_FAMILY_RS600))
+ ret_size = num_pages * sizeof(uint64_t);
else
- ret_size = num_pages * sizeof(uint64_t);
+ ret_size = num_pages * sizeof(unsigned int);
return ret_size;
}