summaryrefslogtreecommitdiff
path: root/src/radeon_dri.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-03-12 14:54:18 +1000
committerDave Airlie <airlied@redhat.com>2009-03-12 14:54:18 +1000
commitef69336584c45e35aabb797a06c4030e75d66507 (patch)
tree58b51539be396b0bbabbdcfb66df22d0a80f4ad8 /src/radeon_dri.c
parent945ccbbd4fa2b65ccdfb23716c178c95b036734d (diff)
r600: fix sizing of PCI GART table for r600
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r--src/radeon_dri.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index 2b7540c3..1bfb8964 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -2327,8 +2327,11 @@ int RADEONDRIGetPciAperTableSize(ScrnInfoPtr pScrn)
int num_pages;
num_pages = (info->dri->pciAperSize * 1024 * 1024) / 4096;
-
- ret_size = num_pages * sizeof(unsigned int);
+
+ if (info->ChipFamily < CHIP_FAMILY_R600)
+ ret_size = num_pages * sizeof(unsigned int);
+ else
+ ret_size = num_pages * sizeof(uint64_t);
return ret_size;
}