glamor: Align stride of fallback pixmap data to 32 bits.

fb/pixman demand this alignment, and all sorts of things go badly otherwise.
Fixes piglit x11-8bpp-7x8-draw.
This commit is contained in:
Eric Anholt 2010-02-09 21:56:39 -06:00 committed by Zhigang Gong
parent 15e58b5ffb
commit 4f398b29dd

View File

@ -112,7 +112,8 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
0);
screen->ModifyPixmapHeader(pixmap, w, h, 0, 0,
(w * pixmap->drawable.bitsPerPixel + 7) / 8,
(((w * pixmap->drawable.bitsPerPixel +
7) / 8) + 3) & ~3,
NULL);
return pixmap;