From fdb59d2535d7d517a14f3d6489ba91f3dac3b99f Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 25 Jul 2005 23:14:50 +0000 Subject: PInS data on later cards (G200 and later) contains information about the physical bus used for the card. This allows accurate detection of PCI cards that use a PCI-to-PCI bridge with an AGP chip. Correctly disable DRI on PCI cards used with pre-3.2 DRM. Previously the test was performed based on PCI ID (see above for why this is wrong) and was done *before* the DRM version was known. Bug #3759: Correctly determine the PLL reference frequency from the PInS data. Previously the wrong bit was tested. Blame the dumb programmer that used cut-and-paste (that would be me). --- src/mga_dacG.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mga_dacG.c') diff --git a/src/mga_dacG.c b/src/mga_dacG.c index 3385636..728dd89 100644 --- a/src/mga_dacG.c +++ b/src/mga_dacG.c @@ -170,8 +170,9 @@ MGAGCalcClock ( ScrnInfoPtr pScrn, long f_out, *s = 3; #ifdef DEBUG - ErrorF( "f_out_requ =%ld f_pll_real=%.1f f_vco=%.1f n=0x%x m=0x%x p=0x%x s=0x%x\n", - f_out, f_pll, f_vco, *best_n, *best_m, *p, *s ); + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "f_out_requ =%ld f_pll_real=%.1f f_vco=%.1f n=0x%x m=0x%x p=0x%x s=0x%x\n", + f_out, (f_vco / (*p + 1)), f_vco, *best_n, *best_m, *p, *s ); #endif } -- cgit v1.2.3