[Openchrome-devel] xf86-video-openchrome: 3 commits - configure.ac src/via_display.c src/via_outputs.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Wed Jun 8 02:10:55 UTC 2016


 configure.ac      |    2 +-
 src/via_display.c |   13 ++++++++++++-
 src/via_outputs.c |    9 ++++++++-
 3 files changed, 21 insertions(+), 3 deletions(-)

New commits:
commit 2d845f3ac9a74ed5dec6729703c16477abe907d4
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Tue Jun 7 19:10:12 2016 -0700

    Version bumped to 0.4.170
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/configure.ac b/configure.ac
index 90e7358..bedaffb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
 # Initialize Autoconf
 AC_PREREQ(2.57)
 AC_INIT([xf86-video-openchrome],
-        [0.4.169],
+        [0.4.170],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
         [xf86-video-openchrome])
 
commit 56ceb6dd38683d5ff1f4866e4d4d74f6d11aba09
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Tue Jun 7 19:02:13 2016 -0700

    Set CLE266.Ax IGA2 display LUT to 6-bit for 8-bit color depth
    
    It was already being done like this for IGA1, and it probably
    should be done like this for IGA2 as well.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_display.c b/src/via_display.c
index 513d09f..957d02f 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -1798,6 +1798,18 @@ viaIGA2SetDisplayRegister(ScrnInfoPtr pScrn, DisplayModePtr mode)
     /* Set the color depth for IGA2. */
     switch (pScrn->bitsPerPixel) {
         case 8:
+            /* Only CLE266.AX uses 6-bit LUT. */
+            if (pVia->Chipset == VIA_CLE266 && pVia->ChipRev < 15) {
+                /* 6-bit LUT */
+                /* 3X5.6A[5] - Second Display 8/6 Bits LUT
+                 *             0: 6-bit
+                 *             1: 8-bit */
+                ViaCrtcMask(hwp, 0x6A, 0x00, 0x20);
+            } else {
+                /* Set IGA2 display LUT to 8-bit */
+                ViaCrtcMask(hwp, 0x6A, 0x20, 0x20);
+            }
+
             ViaCrtcMask(hwp, 0x67, 0x00, 0xC0);
             break;
         case 16:
@@ -1814,7 +1826,6 @@ viaIGA2SetDisplayRegister(ScrnInfoPtr pScrn, DisplayModePtr mode)
             break;
     }
 
-
     /* LVDS Channel 1 and 2 should be controlled by PMS
      * (Power Management Status). */
     ViaSeqMask(hwp, 0x2A, 0x0F, 0x0F);
commit b2d53be4a6b01fd54ea8f9e2f25240bf032f1eb7
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Sat Jun 4 09:29:25 2016 -0700

    Added debug messages to via_analog_dpms.
    
    This function is located inside via_outputs.c.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_outputs.c b/src/via_outputs.c
index 2e3840f..8e48131 100644
--- a/src/via_outputs.c
+++ b/src/via_outputs.c
@@ -557,17 +557,24 @@ via_analog_dpms(xf86OutputPtr output, int mode)
 {
     ScrnInfoPtr pScrn = output->scrn;
 
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Entered via_analog_dpms.\n"));
+
     switch (mode) {
     case DPMSModeOn:
         ViaDisplayEnableCRT(pScrn);
         break;
-
     case DPMSModeStandby:
     case DPMSModeSuspend:
     case DPMSModeOff:
         ViaDisplayDisableCRT(pScrn);
         break;
+    default:
+        break;
     }
+
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Exiting via_analog_dpms.\n"));
 }
 
 static void


More information about the Openchrome-devel mailing list