From d8ac7e28ee2e685640d98f878fd6a55927f85f3e Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sat, 24 Mar 2012 20:29:27 -0500 Subject: [PATCH] radeon_hd: Fix DCE version check * Trace cleanup * Minimal change --- src/add-ons/accelerants/radeon_hd/pll.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/add-ons/accelerants/radeon_hd/pll.cpp b/src/add-ons/accelerants/radeon_hd/pll.cpp index f2eca47614..e66b11b52b 100644 --- a/src/add-ons/accelerants/radeon_hd/pll.cpp +++ b/src/add-ons/accelerants/radeon_hd/pll.cpp @@ -473,17 +473,16 @@ pll_setup_flags(pll_info* pll, uint8 crtcID) uint32 connectorIndex = gDisplay[crtcID]->connectorIndex; uint32 encoderFlags = gConnector[connectorIndex]->encoder.flags; - if ((info.dceMajor >= 3 && info.dceMinor >= 2) - && pll->pixelClock > 200000) { - pll->flags |= PLL_PREFER_HIGH_FB_DIV; - } else - pll->flags |= PLL_PREFER_LOW_REF_DIV; + uint32 dceVersion = (info.dceMajor * 100) + info.dceMinor; + if (dceVersion >= 302 && pll->pixelClock > 200000) + pll->flags |= PLL_PREFER_HIGH_FB_DIV; + else + pll->flags |= PLL_PREFER_LOW_REF_DIV; if (info.chipsetID < RADEON_RV770) pll->flags |= PLL_PREFER_MINM_OVER_MAXP; - if ((encoderFlags & ATOM_DEVICE_LCD_SUPPORT) != 0) { pll->flags |= PLL_IS_LCD; @@ -530,6 +529,7 @@ pll_adjust(pll_info* pll, uint8 crtcID) int index = GetIndexIntoMasterTable(COMMAND, AdjustDisplayPll); if (atom_parse_cmd_header(gAtomContext, index, &tableMajor, &tableMinor) != B_OK) { + ERROR("%s: Couldn't find AtomBIOS PLL adjustment\n", __func__); return B_ERROR; }