[Openchrome-devel] xf86-video-openchrome: 2 commits - configure.ac src/via_display.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Sun Apr 17 08:49:01 UTC 2016
configure.ac | 2 +-
src/via_display.c | 33 +++++++++++++++++++++++++++++++--
2 files changed, 32 insertions(+), 3 deletions(-)
New commits:
commit 8bbd02b0962a26809b567ec84dd5236ac05edba7
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Sun Apr 17 01:48:00 2016 -0700
Version bumped to 0.4.118
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/configure.ac b/configure.ac
index 1578903..b80d26c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
# Initialize Autoconf
AC_PREREQ(2.57)
AC_INIT([xf86-video-openchrome],
- [0.4.117],
+ [0.4.118],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
[xf86-video-openchrome])
commit 27b71e6e6546f52b4134a0574688dfe675249a62
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Sun Apr 17 01:40:46 2016 -0700
Added debug messages to viaIGA2SetFBStartingAddress
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 53b0d23..c77eebf 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -563,14 +563,24 @@ viaIGA1SetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
void
viaIGA2SetFBStartingAddress(xf86CrtcPtr crtc, int x, int y)
{
- drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
- drmmode_ptr drmmode = drmmode_crtc->drmmode;
ScrnInfoPtr pScrn = crtc->scrn;
vgaHWPtr hwp = VGAHWPTR(pScrn);
+ drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
+ drmmode_ptr drmmode = drmmode_crtc->drmmode;
CARD32 Base, tmp;
+ CARD8 cr62, cr63, cr64, cra3;
+
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Entered viaIGA2SetFBStartingAddress.\n"));
Base = (y * pScrn->displayWidth + x) * (pScrn->bitsPerPixel / 8);
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Base Address: 0x%x\n",
+ Base));
Base = (Base + drmmode->front_bo->offset) >> 3;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "DRI Base Address: 0x%x\n",
+ Base);
tmp = hwp->readCrtc(hwp, 0x62) & 0x01;
tmp |= (Base & 0x7F) << 1;
@@ -579,6 +589,25 @@ viaIGA2SetFBStartingAddress(xf86CrtcPtr crtc, int x, int y)
hwp->writeCrtc(hwp, 0x63, (Base & 0x7F80) >> 7);
hwp->writeCrtc(hwp, 0x64, (Base & 0x7F8000) >> 15);
hwp->writeCrtc(hwp, 0xA3, (Base & 0x03800000) >> 23);
+
+#ifdef HAVE_DEBUG
+ cr62 = hwp->readCrtc(hwp, 0x62);
+ cr63 = hwp->readCrtc(hwp, 0x63);
+ cr64 = hwp->readCrtc(hwp, 0x64);
+ cra3 = hwp->readCrtc(hwp, 0xA3);
+
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "CR62: 0x%02x\n", cr62));
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "CR63: 0x%02x\n", cr63));
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "CR64: 0x%02x\n", cr64));
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "CRA3: 0x%02x\n", cra3));
+#endif
+
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Exiting viaIGA2SetFBStartingAddress.\n"));
}
void
More information about the Openchrome-devel
mailing list