summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrice Goglin <bgoglin@debian.org>2008-07-29 23:31:14 +0200
committerBrice Goglin <bgoglin@debian.org>2008-07-29 23:41:47 +0200
commit5b5441f8cc119db0d1e03dd35bd06015a26270dd (patch)
treeac4ba25eae76e55f8ca28055d6fd4009d0ca9c28 /src
parent0a505297f09aefb1b4432176a263bfdf6f256f77 (diff)
Increase default GART size to 32MB on >=R300
Diffstat (limited to 'src')
-rw-r--r--src/radeon_dri.h1
-rw-r--r--src/radeon_driver.c6
2 files changed, 6 insertions, 1 deletions
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;