[PATCH intel] make MAXSCREENS run-time configurable

Tiago Vignatti tiago.vignatti at nokia.com
Thu Apr 8 08:06:38 PDT 2010


Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 src/i810_dga.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/i810_dga.c b/src/i810_dga.c
index 3f53057..72808ab 100644
--- a/src/i810_dga.c
+++ b/src/i810_dga.c
@@ -140,7 +140,7 @@ I810DGAInit(ScreenPtr pScreen)
    return DGAInit(pScreen, &I810DGAFuncs, modes, num);
 }
 
-static DisplayModePtr I810SavedDGAModes[MAXSCREENS];
+static DisplayModePtr *I810SavedDGAModes;
 
 static Bool
 I810_SetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
@@ -150,6 +150,8 @@ I810_SetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
 
    MARKER();
 
+   MAXSCREENSALLOC_FATAL(I810SavedDGAModes);
+
    if (!pMode) {			/* restore the original mode */
       DPRINTF(PFX, "Restoring original mode (from DGA mode)\n");
       if (pI810->DGAactive) {
-- 
1.6.0.4



More information about the xorg-devel mailing list