[PATCH xserver v3 2/3] dri3: Set stride and size for old clients

Daniel Stone daniels at collabora.com
Thu Apr 5 15:47:38 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..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.16.3



More information about the xorg-devel mailing list