For old clients using the fd_from_pixmap entrypoint, make sure we set stride and size correctly.
Noticed by inspection. Signed-off-by: Daniel Stone <dani...@collabora.com> --- dri3/dri3_screen.c | 2 ++ 1 file changed, 2 insertions(+) Sorry, accidentally sent the previous without having committed the fix. diff --git a/dri3/dri3_screen.c b/dri3/dri3_screen.c index 41595f412..8ccbeb40c 100644 --- a/dri3/dri3_screen.c +++ b/dri3/dri3_screen.c @@ -161,6 +161,8 @@ dri3_fd_from_pixmap(PixmapPtr pixmap, CARD16 *stride, CARD32 *size) return -1; } + *stride = strides[0]; + *size = size[0]; return fds[0]; } -- 2.17.0 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel