diff options
author | Alex Deucher <alex@botch2.(none)> | 2008-01-29 12:09:24 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2008-01-29 12:09:24 -0500 |
commit | 09348a83d06ba9d3129499c4daedd44a68771530 (patch) | |
tree | 6d9d29f39116a5921dbfd92cf094f6b2fbfe8841 | |
parent | 0c26806245381b925b73ff9f3b747e3dcf0ebd6f (diff) |
Seems the default is more reliable... we can't win.
Revert "radeon: Default to 1x again with non-v3 AGP cards."
This reverts commit b653e5a628bfa4dfb168e96f93f41eb910f409fb.
-rw-r--r-- | src/radeon_dri.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c index f1003d72..ac8d03c9 100644 --- a/src/radeon_dri.c +++ b/src/radeon_dri.c @@ -726,9 +726,18 @@ static Bool RADEONSetAgpMode(RADEONInfoPtr info, ScreenPtr pScreen) pcie-agp rialto bridge chip - use the one from bridge which must match */ CARD32 agp_status = (INREG(RADEON_AGP_STATUS) | RADEON_AGPv3_MODE) & mode; Bool is_v3 = (agp_status & RADEON_AGPv3_MODE); - unsigned int defaultMode = is_v3 ? - ((agp_status & RADEON_AGPv3_8X_MODE) ? 8 : 4) : 1; - MessageType from = X_DEFAULT; + unsigned int defaultMode; + MessageType from; + + if (is_v3) { + defaultMode = (agp_status & RADEON_AGPv3_8X_MODE) ? 8 : 4; + } else { + if (agp_status & RADEON_AGP_4X_MODE) defaultMode = 4; + else if (agp_status & RADEON_AGP_2X_MODE) defaultMode = 2; + else defaultMode = 1; + } + + from = X_DEFAULT; if (xf86GetOptValInteger(info->Options, OPTION_AGP_MODE, &info->agpMode)) { if ((info->agpMode < (is_v3 ? 4 : 1)) || |