From 9656d329e4df28cfe138b657d04e5136bc794ce2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 8 Mar 2010 14:34:04 -0800 Subject: 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. --- src/drmmode_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 22c967a6..ae200ca6 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); -- cgit v1.2.3