From 5b5441f8cc119db0d1e03dd35bd06015a26270dd Mon Sep 17 00:00:00 2001 From: Brice Goglin Date: Tue, 29 Jul 2008 23:31:14 +0200 Subject: Increase default GART size to 32MB on >=R300 --- src/radeon_dri.h | 1 + src/radeon_driver.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/radeon_dri.h b/src/radeon_dri.h index b1c5bbfb..6e3ad62a 100644 --- a/src/radeon_dri.h +++ b/src/radeon_dri.h @@ -40,6 +40,7 @@ /* DRI Driver defaults */ #define RADEON_DEFAULT_GART_SIZE 8 /* MB (must be 2^n and > 4MB) */ +#define R300_DEFAULT_GART_SIZE 32 /* MB (for R300 and above) */ #define RADEON_DEFAULT_RING_SIZE 1 /* MB (must be page aligned) */ #define RADEON_DEFAULT_BUFFER_SIZE 2 /* MB (must be page aligned) */ #define RADEON_DEFAULT_GART_TEX_SIZE 1 /* MB (must be page aligned) */ diff --git a/src/radeon_driver.c b/src/radeon_driver.c index d55b9064..010f1b93 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -2184,7 +2184,11 @@ static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn) "Direct rendering experimental on RS400/Xpress 200 enabled\n"); } - info->gartSize = RADEON_DEFAULT_GART_SIZE; + if (info->ChipFamily >= CHIP_FAMILY_R300) + info->gartSize = R300_DEFAULT_GART_SIZE; + else + info->gartSize = RADEON_DEFAULT_GART_SIZE; + info->ringSize = RADEON_DEFAULT_RING_SIZE; info->bufSize = RADEON_DEFAULT_BUFFER_SIZE; info->gartTexSize = RADEON_DEFAULT_GART_TEX_SIZE; -- cgit v1.2.3