xf86-video-nv: 2 commits - configure.ac src/nv_dac.c src/nv_hw.c src/nv_setup.c src/nv_type.h

Aaron Plattner aplattner at kemper.freedesktop.org
Mon Jun 18 13:15:03 PDT 2007


 configure.ac   |    2 +-
 src/nv_dac.c   |    3 ++-
 src/nv_hw.c    |    2 ++
 src/nv_setup.c |    1 +
 src/nv_type.h  |    2 ++
 5 files changed, 8 insertions(+), 2 deletions(-)

New commits:
diff-tree 209c84e788faf3c4d0ce053e5f29ff5f5b798628 (from 24770ccf880f056bc0db9464249caca10692fb56)
Author: Aaron Plattner <aplattner at nvidia.com>
Date:   Mon Jun 18 13:08:31 2007 -0700

    Bump to 2.1.0.

diff --git a/configure.ac b/configure.ac
index 66a1efb..0b5c14b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,7 +22,7 @@
 
 AC_PREREQ(2.57)
 AC_INIT([xf86-video-nv],
-        2.0.96,
+        2.1.0,
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
         xf86-video-nv)
 
diff-tree 24770ccf880f056bc0db9464249caca10692fb56 (from 4e56465a79587c4df6bf1dfd7cc87a4f22707a8f)
Author: Aaron Plattner <aplattner at nvidia.com>
Date:   Mon Jun 18 12:36:29 2007 -0700

    Fix some random colormap corruption on DFPs with certain pre-G80 GPUs.

diff --git a/src/nv_dac.c b/src/nv_dac.c
index 3fb687f..e1f0740 100644
--- a/src/nv_dac.c
+++ b/src/nv_dac.c
@@ -1,6 +1,6 @@
  /***************************************************************************\
 |*                                                                           *|
-|*       Copyright 2003 NVIDIA, Corporation.  All rights reserved.           *|
+|*       Copyright 2007 NVIDIA, Corporation.  All rights reserved.           *|
 |*                                                                           *|
 |*     NOTICE TO USER:   The source code  is copyrighted under  U.S. and     *|
 |*     international laws.  Users and possessors of this source code are     *|
@@ -221,6 +221,7 @@ NVDACInit(ScrnInfoPtr pScrn, DisplayMode
        }
        nvReg->crtcSync = pNv->PRAMDAC[0x0828/4];
        nvReg->crtcSync += NVDACPanelTweaks(pNv, nvReg);
+       nvReg->crtcVSync = pNv->fpVTotal - 6;
     }
 
     nvReg->vpll = nvReg->pll;
diff --git a/src/nv_hw.c b/src/nv_hw.c
index ae499fa..63f9067 100644
--- a/src/nv_hw.c
+++ b/src/nv_hw.c
@@ -1501,6 +1501,7 @@ void NVLoadStateExt (
     } else {
        pNv->PRAMDAC[0x0848/4] = state->scale;
        pNv->PRAMDAC[0x0828/4] = state->crtcSync;
+       pNv->PRAMDAC[0x0808/4] = state->crtcVSync;
     }
     pNv->PRAMDAC[0x0600/4] = state->general;
 
@@ -1588,6 +1589,7 @@ void NVUnloadStateExt
 
     if(pNv->FlatPanel) {
        state->crtcSync = pNv->PRAMDAC[0x0828/4];
+       state->crtcVSync = pNv->PRAMDAC[0x0808/4];
     }
 }
 
diff --git a/src/nv_setup.c b/src/nv_setup.c
index 71d7955..1bf58e0 100644
--- a/src/nv_setup.c
+++ b/src/nv_setup.c
@@ -687,6 +687,7 @@ NVCommonSetup(ScrnInfoPtr pScrn)
     if(pNv->FlatPanel && !pNv->Television) {
        pNv->fpWidth = pNv->PRAMDAC[0x0820/4] + 1;
        pNv->fpHeight = pNv->PRAMDAC[0x0800/4] + 1;
+       pNv->fpVTotal = pNv->PRAMDAC[0x804/4] + 1;
        pNv->fpSyncs = pNv->PRAMDAC[0x0848/4] & 0x30000033;
        xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Panel size is %i x %i\n",
                   pNv->fpWidth, pNv->fpHeight);
diff --git a/src/nv_type.h b/src/nv_type.h
index b10babc..b4f1cd3 100644
--- a/src/nv_type.h
+++ b/src/nv_type.h
@@ -70,6 +70,7 @@ typedef struct _riva_hw_state
     U032 timingV;
     U032 displayV;
     U032 crtcSync;
+    U032 crtcVSync;
 } RIVA_HW_STATE, *NVRegPtr;
 
 
@@ -161,6 +162,7 @@ typedef struct {
     Bool                fpScaler;
     int                 fpWidth;
     int                 fpHeight;
+    CARD32              fpVTotal;
     CARD32              fpSyncs;
     Bool                usePanelTweak;
     int                 PanelTweak;


More information about the xorg-commit mailing list