mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 06:28:07 +02:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue