[Openchrome-devel] xf86-video-openchrome: 2 commits - configure.ac src/via_display.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Tue May 24 09:29:27 UTC 2016
configure.ac | 2 +-
src/via_display.c | 23 ++++++++++++++++++-----
2 files changed, 19 insertions(+), 6 deletions(-)
New commits:
commit 7f04f484031547918529e025829b992ff5a3749d
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue May 24 01:49:11 2016 -0700
Version bumped to 0.4.156
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/configure.ac b/configure.ac
index 885b356..9caea82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
# Initialize Autoconf
AC_PREREQ(2.57)
AC_INIT([xf86-video-openchrome],
- [0.4.155],
+ [0.4.156],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
[xf86-video-openchrome])
commit d6ca7471a3db5b742d399152589fa4c95a213db6
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue May 24 01:47:49 2016 -0700
Rewrite of the code that sets IGA1 color depth
viaIGA1SetDisplayRegister function contains the code in question.
This function is located inside via_display.c.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_display.c b/src/via_display.c
index d34fb3a..9ebbc36 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -628,20 +628,33 @@ viaIGA1SetDisplayRegister(ScrnInfoPtr pScrn, DisplayModePtr mode)
/* Set the color depth for IGA1. */
switch (pScrn->bitsPerPixel) {
case 8:
- /* Only CLE266.AX use 6bits LUT. */
+ /* Only CLE266.AX uses 6-bit LUT. */
if (pVia->Chipset == VIA_CLE266 && pVia->ChipRev < 15) {
- ViaSeqMask(hwp, 0x15, 0x22, 0xFE);
+ /* 6-bit LUT */
+ ViaSeqMask(hwp, 0x15, 0x00, 0x9C);
} else {
- ViaSeqMask(hwp, 0x15, 0xA2, 0xFE);
+ /* 8-bit LUT */
+ ViaSeqMask(hwp, 0x15, 0x80, 0x9C);
}
break;
case 16:
- ViaSeqMask(hwp, 0x15, 0xB6, 0xFE);
+ /* 3C5.15[7] - 8/6 Bits LUT
+ * 0: 6-bit
+ * 1: 8-bit
+ * 3C5.15[4] - Hi Color Mode Select
+ * 0: 555
+ * 1: 565
+ * 3C5.15[3:2] - Display Color Depth Select
+ * 00: 8bpp
+ * 01: 16bpp
+ * 10: 30bpp
+ * 11: 32bpp */
+ ViaSeqMask(hwp, 0x15, 0x94, 0x9C);
break;
case 24:
case 32:
- ViaSeqMask(hwp, 0x15, 0xAE, 0xFE);
+ ViaSeqMask(hwp, 0x15, 0x9C, 0x9C);
break;
default:
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
More information about the Openchrome-devel
mailing list