summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2007-12-19 19:15:19 -0500
committerAdam Jackson <ajax@redhat.com>2007-12-19 19:15:19 -0500
commitfb7a4e24f2da3561ef81371ca4013a4f13806e91 (patch)
tree0b9456244f99be090569c69401640f3b6c34666b /src/radeon.h
parentc1b0b69cc50516c3b7e881b0eb46cb3cd2e9dce6 (diff)
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.
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 03db360..801d616 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -41,6 +41,7 @@
#include <unistd.h> /* For usleep() */
#include <sys/time.h> /* 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,