dri3: Set stride and size for old clients

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 <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2018-04-05 15:00:38 +01:00 committed by Adam Jackson
parent 78574a66b5
commit 8ff1cdb2bf
1 changed files with 2 additions and 0 deletions

View File

@ -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];
}