Commit e8bd5c6b authored by Aleksander Miera's avatar Aleksander Miera
Browse files

modesetting: workaround for stride/pitch mismatch

This helps for the cases where buffer stride is miscalculated, the most
notable example being 1366x768 resolution. From what I understand the code,
the stride calculation should distinguish between any pixmap and the one
used for FB, which is not the case and everything is calculated in

Fixes: xorg/xserver#889

Signed-off-by: Aleksander Miera's avatarAleksander Miera <>
parent 249a12c5
Pipeline #191939 passed with stages
in 5 minutes and 40 seconds
......@@ -1436,6 +1436,7 @@ msSharePixmapBacking(PixmapPtr ppix, ScreenPtr screen, void **handle)
if (ret == -1)
return FALSE;
ppix->devKind = stride;
*handle = (void *)(long)(ret);
return TRUE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment