[PATCH xserver 2/2] dri3: Set stride and size for old clients
Daniel Stone
daniels at collabora.com
Thu Apr 5 13:58:41 UTC 2018
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 at collabora.com>
---
dri3/dri3_screen.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dri3/dri3_screen.c b/dri3/dri3_screen.c
index 41595f412..a111ee50f 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 = sizes[0];
return fds[0];
}
--
2.17.0
More information about the xorg-devel
mailing list