diff options
author | Daniel Stone <daniels@collabora.com> | 2018-04-05 15:00:38 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-04-05 10:51:38 -0400 |
commit | 8ff1cdb2bff72a37e75004f562737dd0af6daf14 (patch) | |
tree | 83988dcd07d86d20f083ce2543abfbd42856c752 /dri3 | |
parent | 78574a66b5b286e26839877640592980de089d64 (diff) |
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>
Diffstat (limited to 'dri3')
-rw-r--r-- | dri3/dri3_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
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]; } |