[openchrome-devel] xf86-video-openchrome: Branch 'main' - 2 commits - configure.ac src/via_display.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Wed Feb 9 23:08:54 UTC 2022


 configure.ac      |    2 +-
 src/via_display.c |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 1d4d0bcf9b00083b8cc8ee90bf445ecb52bced81
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Wed Feb 9 17:10:24 2022 -0600

    Version bumped to 0.6.410
    
    This version fixes a bug that prevented xrandr from adjusting
    brightness and gamma parameters.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/configure.ac b/configure.ac
index e6888e9..0602cae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
 # Initialize Autoconf
 AC_PREREQ([2.60])
 AC_INIT([xf86-video-openchrome],
-        [0.6.409],
+        [0.6.410],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
         [xf86-video-openchrome])
 
commit be4848075f312a4036a9d1a3528be1443c80a638
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Wed Feb 9 16:54:30 2022 -0600

    Revert commit 7a55ef1 (gamma correction)
    
    It was reported that commit 7a55ef1 (Turning off gamma correction
    for both IGA1 and IGA2) broke the ability of xrandr to adjust its
    brightness parameter.  It turns out gamma parameter also stopped
    working.  Since the related code has changed a lot, do an equivalent
    code revert to revert the commit.
    
    Suggested-by: RBZ <rbz at keemail.me>
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_display.c b/src/via_display.c
index 3ef093e..4054fb4 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -3412,6 +3412,15 @@ via_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
 
     VIALoadRgbLut(pScrn, 0, size, colors);
 
+    /*
+     * Turn gamma correction on.
+     */
+    if (!iga->index) {
+        viaIGA1SetGamma(pScrn, TRUE);
+    } else {
+        viaIGA2SetGamma(pScrn, TRUE);
+    }
+
     DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                         "Exiting %s.\n", __func__));
 }


More information about the openchrome-devel mailing list