diff options
-rw-r--r-- | man/radeon.man | 5 | ||||
-rw-r--r-- | src/radeon_dri.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/man/radeon.man b/man/radeon.man index b0a4f041..d8620faa 100644 --- a/man/radeon.man +++ b/man/radeon.man @@ -177,8 +177,9 @@ The default is to .B leave it unchanged. .TP .BI "Option \*qAGPFastWrite\*q \*q" boolean \*q -Enable or disable AGP fast writes. Enabling this is frequently the cause of -instability. Used only when the DRI is enabled. +Enable AGP fast writes. Enabling this is frequently the cause of +instability. Used only when the DRI is enabled. If you enable +this option you will get *NO* support from developers. .br The default is to .B leave it unchanged. diff --git a/src/radeon_dri.c b/src/radeon_dri.c index 35e41545..39c72dbe 100644 --- a/src/radeon_dri.c +++ b/src/radeon_dri.c @@ -739,8 +739,9 @@ static Bool RADEONSetAgpMode(RADEONInfoPtr info, ScreenPtr pScreen) from = X_DEFAULT; if (xf86GetOptValInteger(info->Options, OPTION_AGP_MODE, &info->agpMode)) { - if (info->agpMode < is_v3 ? 4 : 1 || info->agpMode > is_v3 ? 8 : 4 || - info->agpMode & (info->agpMode - 1)) { + if ((info->agpMode < (is_v3 ? 4 : 1)) || + (info->agpMode > (is_v3 ? 8 : 4)) || + (info->agpMode & (info->agpMode - 1))) { xf86DrvMsg(pScreen->myNum, X_ERROR, "Illegal AGP Mode: %d (valid values: %s), leaving at " "%dx\n", info->agpMode, is_v3 ? "4, 8" : "1, 2, 4", @@ -753,7 +754,7 @@ static Bool RADEONSetAgpMode(RADEONInfoPtr info, ScreenPtr pScreen) xf86DrvMsg(pScreen->myNum, from, "Using AGP %dx\n", info->agpMode); - info->agpFastWrite = (agp_status & RADEON_AGP_FW_MODE); + info->agpFastWrite = 0; // Always off by default as it sucks from = xf86GetOptValInteger(info->Options, OPTION_AGP_FW, &info->agpFastWrite) ? X_CONFIG : X_DEFAULT; @@ -794,6 +795,7 @@ static Bool RADEONSetAgpMode(RADEONInfoPtr info, ScreenPtr pScreen) } if (info->agpFastWrite) mode |= RADEON_AGP_FW_MODE; + else mode &= ~RADEON_AGP_FW_MODE; xf86DrvMsg(pScreen->myNum, X_INFO, "[agp] Mode 0x%08lx [AGP 0x%04x/0x%04x; Card 0x%04x/0x%04x]\n", |