diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-08 14:34:04 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-08 14:40:50 -0800 |
commit | 9656d329e4df28cfe138b657d04e5136bc794ce2 (patch) | |
tree | cc411e0a97d8170fe4590aad04ecb51ff3c04333 | |
parent | b71ca26a026a356763c51c763bcdd8024fc4a783 (diff) |
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.
-rw-r--r-- | src/drmmode_display.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |