From fb7a4e24f2da3561ef81371ca4013a4f13806e91 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 19 Dec 2007 19:15:19 -0500 Subject: Fix RN50 mode filtering. The old code would attempt to limit the maximum pixel size of the screen by limiting the maximum PLL frequency. This ends up confusing the PLL computation code since sometimes your maximum freq can be lower than your minimum freq. More to the point it's just wrong, maximum PLL frequency isn't the same thing as maximum pixel clock, and even that isn't the same thing as maximum scanout pixels per second. The correct thing to do is filter by the mode's effective memory bandwidth. --- src/radeon.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/radeon.h') diff --git a/src/radeon.h b/src/radeon.h index 03db3604..801d616a 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -41,6 +41,7 @@ #include /* For usleep() */ #include /* For gettimeofday() */ +#include "config.h" #include "xf86str.h" #include "compiler.h" #include "xf86fbman.h" @@ -97,6 +98,11 @@ #define MIN(a,b) ((a)>(b)?(b):(a)) #endif +#ifndef HAVE_XF86MODEBANDWIDTH +extern unsigned int xf86ModeBandwidth(DisplayModePtr mode, int depth); +#define MODE_BANDWIDTH MODE_BAD +#endif + typedef enum { OPTION_NOACCEL, OPTION_SW_CURSOR, -- cgit v1.2.3