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:
parent
15e58b5ffb
commit
4f398b29dd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user