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.
This commit is contained in:
Eric Anholt 2010-03-08 14:34:04 -08:00
parent b71ca26a02
commit 9656d329e4
1 changed files with 1 additions and 0 deletions

View File

@ -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);