xf86-video-intel: src/drmmode_display.c

Eric Anholt anholt at kemper.freedesktop.org
Mon Mar 8 14:41:31 PST 2010


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

New commits:
commit 9656d329e4df28cfe138b657d04e5136bc794ce2
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Mar 8 14:34:04 2010 -0800

    Put back the pitch alignment for new framebuffers.
    
    I confused a dead assignment with dead code, because one of the args
    to the function was an outvalue.  Fixes corruption under compiz.
    
    Bug #26814.

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 22c967a..ae200ca 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1262,6 +1262,7 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height)
 		return TRUE;
 
 	pitch = i830_pad_drawable_width(width, intel->cpp);
+	i830_tiled_width(intel, &pitch, intel->cpp);
 	xf86DrvMsg(scrn->scrnIndex, X_INFO,
 		   "Allocate new frame buffer %dx%d stride %d\n",
 		   width, height, pitch);


More information about the xorg-commit mailing list