xf86-video-ati: Branch 'master'

Michel Dänzer daenzer at kemper.freedesktop.org
Thu Apr 9 00:47:50 PDT 2009


 src/radeon_driver.c |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 6532aeddacdeda3aa534264741c8648e1c449e76
Author: Michel Dänzer <daenzer at vmware.com>
Date:   Thu Apr 9 09:41:56 2009 +0200

    Clear the framebuffer before initializing modes.
    
    Fixes garbage being visible shortly on server startup or when VT switching back
    to X.

diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 8673f5e..5a3a27b 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -3764,6 +3764,10 @@ Bool RADEONScreenInit(int scrnIndex, ScreenPtr pScreen,
         }
     }
 
+    /* Clear the framebuffer */
+    memset(info->FB + pScrn->fbOffset, 0,
+           pScrn->virtualY * pScrn->displayWidth * info->CurrentLayout.pixel_bytes);
+
     /* set the modes with desired rotation, etc. */
     if (!xf86SetDesiredModes (pScrn))
 	return FALSE;
@@ -5660,6 +5664,10 @@ Bool RADEONEnterVT(int scrnIndex, int flags)
 
     pScrn->vtSema = TRUE;
 
+    /* Clear the framebuffer */
+    memset(info->FB + pScrn->fbOffset, 0,
+           pScrn->virtualY * pScrn->displayWidth * info->CurrentLayout.pixel_bytes);
+
     if (!xf86SetDesiredModes(pScrn))
 	return FALSE;
 


More information about the xorg-commit mailing list