[Openchrome-devel] xf86-video-openchrome: src/via_display.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Wed Apr 13 21:32:03 UTC 2016


 src/via_display.c |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 9ff51d02d0e95fea9fbae1c59a636ebee25fc82e
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Wed Apr 13 14:30:29 2016 -0700

    Added debug messages to iga1_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 fa48728..3a092ab 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -955,8 +955,16 @@ iga1_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 iga1_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 iga1_crtc_mode_set.\n"));
         return;
+    }
 
     ViaCRTCInit(pScrn);
     ViaModeFirstCRTC(pScrn, adjusted_mode);
@@ -967,6 +975,9 @@ iga1_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode,
         ViaDisplayDisableSimultaneous(pScrn);
 
     iga1_crtc_set_origin(crtc, crtc->x, crtc->y);
+
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Exiting iga1_crtc_mode_set.\n"));
 }
 
 static void


More information about the Openchrome-devel mailing list