diff options
author | Dave Airlie <airliedfreedesktop.org> | 2004-04-14 02:09:52 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2004-04-14 02:09:52 +0000 |
commit | f833df0781d8b32009f6b52a4eff97750968041b (patch) | |
tree | 1bb3bebcea6654a15af7b4d1b6bf5a812496be7e | |
parent | 50a8b7b611b324ee837db61efe6fdac8fb062086 (diff) |
get agpmode from config file
-rw-r--r-- | src/mesa/drivers/dri/radeon/server/radeon_dri.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/server/radeon_dri.c b/src/mesa/drivers/dri/radeon/server/radeon_dri.c index e7c50966417..9d95328a2e0 100644 --- a/src/mesa/drivers/dri/radeon/server/radeon_dri.c +++ b/src/mesa/drivers/dri/radeon/server/radeon_dri.c @@ -329,7 +329,7 @@ static int RADEONDRIAgpInit( const DRIDriverContext *ctx, RADEONInfoPtr info) /* Disable fast write entirely - too many lockups. */ mode &= ~RADEON_AGP_MODE_MASK; - switch (info->gartMode) { + switch (ctx->agpmode) { case 4: mode |= RADEON_AGP_4X_MODE; case 2: mode |= RADEON_AGP_2X_MODE; case 1: default: mode |= RADEON_AGP_1X_MODE; @@ -340,6 +340,8 @@ static int RADEONDRIAgpInit( const DRIDriverContext *ctx, RADEONInfoPtr info) drmAgpRelease(ctx->drmFD); return 0; } + else + fprintf(stderr, "[gart] AGP enabled at %dx\n", ctx->agpmode); /* Workaround for some hardware bugs */ if (info->ChipFamily < CHIP_FAMILY_R200) @@ -919,7 +921,7 @@ static int RADEONScreenInit( DRIDriverContext *ctx, RADEONInfoPtr info ) pRADEONDRI->depth = ctx->bpp; /* XXX: depth */ pRADEONDRI->bpp = ctx->bpp; pRADEONDRI->IsPCI = 0; - pRADEONDRI->AGPMode = info->gartMode; + pRADEONDRI->AGPMode = ctx->agpmode; pRADEONDRI->frontOffset = info->frontOffset; pRADEONDRI->frontPitch = info->frontPitch; pRADEONDRI->backOffset = info->backOffset; @@ -1147,7 +1149,6 @@ static int radeonInitFBDev( DRIDriverContext *ctx ) ctx->driverPrivate = (void *)info; info->gartFastWrite = RADEON_DEFAULT_AGP_FAST_WRITE; - info->gartMode = RADEON_DEFAULT_AGP_MODE; info->gartSize = RADEON_DEFAULT_AGP_SIZE; info->gartTexSize = RADEON_DEFAULT_AGP_TEX_SIZE; info->bufSize = RADEON_DEFAULT_BUFFER_SIZE; |