xf86-video-intel: src/i830_debug.c

Jesse Barnes jbarnes at kemper.freedesktop.org
Thu Feb 21 08:39:18 PST 2008


 src/i830_debug.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 444984a578aae92ff55c06da897ea1d23679e706
Author: Jesse Barnes <jbarnes at hobbes.virtuousgeek.org>
Date:   Thu Feb 21 08:37:42 2008 -0800

    Remove side effects from VGA debug code
    
    The VGA register dumping code was leaving ARX in data mode rather than index
    mode, which could cause problems for later software accessing AR* registers.
    Fix it to make sure it's in index mode when we're done.
    
    Fixes #14434.

diff --git a/src/i830_debug.c b/src/i830_debug.c
index 09ec509..7d0c0a0 100644
--- a/src/i830_debug.c
+++ b/src/i830_debug.c
@@ -734,6 +734,7 @@ static void i830DumpAR(ScrnInfoPtr pScrn)
     }
     INREG8(st01);
     OUTREG8(0x3c0, orig_arx);
+    INREG8(st01); /* switch back to index mode */
 }
 
 void i830DumpRegs (ScrnInfoPtr pScrn)


More information about the xorg-commit mailing list