Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit more xf86SetModeDefaultName( after xf86CVTMode()



details:   https://anonhg.NetBSD.org/xsrc/rev/2f8cafd44632
branches:  trunk
changeset: 7126:2f8cafd44632
user:      macallan <macallan%NetBSD.org@localhost>
date:      Mon Aug 01 22:17:27 2022 +0000

description:
more xf86SetModeDefaultName( after xf86CVTMode()

diffstat:

 external/mit/xf86-video-nouveau/dist/src/nv_driver.c        |  9 ++++++---
 external/mit/xf86-video-openchrome/dist/src/via_fp.c        |  1 +
 external/mit/xf86-video-savage/dist/src/savage_driver.c     |  2 ++
 external/mit/xf86-video-siliconmotion/dist/src/smi_output.c |  5 ++++-
 4 files changed, 13 insertions(+), 4 deletions(-)

diffs (68 lines):

diff -r 77561f662c59 -r 2f8cafd44632 external/mit/xf86-video-nouveau/dist/src/nv_driver.c
--- a/external/mit/xf86-video-nouveau/dist/src/nv_driver.c      Mon Aug 01 06:56:42 2022 +0000
+++ b/external/mit/xf86-video-nouveau/dist/src/nv_driver.c      Mon Aug 01 22:17:27 2022 +0000
@@ -1227,10 +1227,13 @@
        nouveau_setup_capabilities(pScrn);
 
        if (!pScrn->modes) {
-               pScrn->modes = xf86ModesAdd(pScrn->modes,
-                       xf86CVTMode(pScrn->display->virtualX,
+               DisplayModePtr m;
+
+               m = xf86CVTMode(pScrn->display->virtualX,
                                    pScrn->display->virtualY,
-                                   60, 0, 0));
+                                   60, 0, 0);
+               xf86SetModeDefaultName(m);
+               pScrn->modes = xf86ModesAdd(pScrn->modes, m);
        }
 
        /* Set the current mode to the first in the list */
diff -r 77561f662c59 -r 2f8cafd44632 external/mit/xf86-video-openchrome/dist/src/via_fp.c
--- a/external/mit/xf86-video-openchrome/dist/src/via_fp.c      Mon Aug 01 06:56:42 2022 +0000
+++ b/external/mit/xf86-video-openchrome/dist/src/via_fp.c      Mon Aug 01 22:17:27 2022 +0000
@@ -1359,6 +1359,7 @@
                 } else {
                     pDisplay_Mode = xf86CVTMode(pPanel->NativeWidth, pPanel->NativeHeight,
                                     60.0f, FALSE, FALSE);
+                    xf86SetModeDefaultName(pDisplay_Mode);
                 }
 
                 if (pDisplay_Mode) {
diff -r 77561f662c59 -r 2f8cafd44632 external/mit/xf86-video-savage/dist/src/savage_driver.c
--- a/external/mit/xf86-video-savage/dist/src/savage_driver.c   Mon Aug 01 06:56:42 2022 +0000
+++ b/external/mit/xf86-video-savage/dist/src/savage_driver.c   Mon Aug 01 22:17:27 2022 +0000
@@ -948,6 +948,7 @@
 
     Mode = xf86CVTMode(psav->PanelX, psav->PanelY, 60.00, TRUE, FALSE);
     Mode->type = M_T_DRIVER | M_T_PREFERRED;
+    xf86SetModeDefaultName(Mode);
     pScrn->monitor->Modes = SavageModesAdd(pScrn->monitor->Modes, Mode);
 
     if ((pScrn->monitor->nHsync == 0) && 
@@ -1042,6 +1043,7 @@
            DisplayModePtr native = xf86CVTMode(panelX, panelY, 60.0, 0, 0);
            if (!native)
                break;
+           xf86SetModeDefaultName(native);
 
            if (!pScrn->monitor->nHsync) {
                pScrn->monitor->nHsync = 1;
diff -r 77561f662c59 -r 2f8cafd44632 external/mit/xf86-video-siliconmotion/dist/src/smi_output.c
--- a/external/mit/xf86-video-siliconmotion/dist/src/smi_output.c       Mon Aug 01 06:56:42 2022 +0000
+++ b/external/mit/xf86-video-siliconmotion/dist/src/smi_output.c       Mon Aug 01 22:17:27 2022 +0000
@@ -142,10 +142,13 @@
 SMI_OutputGetModes_native(xf86OutputPtr output)
 {
     SMIPtr pSmi = SMIPTR(output->scrn);
+    DisplayModePtr m;
     ENTER();
 
 #ifdef HAVE_XMODES
-    LEAVE(xf86CVTMode(pSmi->lcdWidth, pSmi->lcdHeight, 60.0f, FALSE, FALSE));
+    m = xf86CVTMode(pSmi->lcdWidth, pSmi->lcdHeight, 60.0f, FALSE, FALSE);
+    xf86SetModeDefaultName(m);
+    LEAVE(m);
 #else
     LEAVE(NULL);
 #endif



Home | Main Index | Thread Index | Old Index