[Openchrome-devel] xf86-video-openchrome: src/via_display.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Wed Apr 13 23:04:54 UTC 2016
src/via_display.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
New commits:
commit cb33c33ea12af82193a1cb84eb82730f5ef00496
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Wed Apr 13 16:04:23 2016 -0700
Added debug messages to iga2_crtc_mode_set
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 3a092ab..c5541f9 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -1351,8 +1351,16 @@ iga2_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode,
ScrnInfoPtr pScrn = crtc->scrn;
VIAPtr pVia = VIAPTR(pScrn);
- if (!vgaHWInit(pScrn, adjusted_mode))
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Entered iga2_crtc_mode_set.\n"));
+
+ if (!vgaHWInit(pScrn, adjusted_mode)) {
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "vgaHWInit failed.\n"));
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Exiting iga2_crtc_mode_set.\n"));
return;
+ }
ViaCRTCInit(pScrn);
ViaModeSecondCRTC(pScrn, adjusted_mode);
@@ -1364,6 +1372,9 @@ iga2_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode,
ViaDisplayDisableSimultaneous(pScrn);
iga2_crtc_set_origin(crtc, crtc->x, crtc->y);
+
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Exiting iga2_crtc_mode_set.\n"));
}
static void
More information about the Openchrome-devel
mailing list