mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
glamor: Return the stride/size for glamor_dri3_name_from_pixmap(), too.
Just like for a caller of glamor_dri3_fd_from_pixmap(), otherwise the consumer of that named buffer has no idea what GL chose for the stride. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Markus Wick <markus@selfnet.de>
This commit is contained in:
parent
4e21b7ee49
commit
e23dd41195
3 changed files with 6 additions and 5 deletions
|
|
@ -647,7 +647,7 @@ glamor_fd_from_pixmap(ScreenPtr screen,
|
|||
}
|
||||
|
||||
int
|
||||
glamor_name_from_pixmap(PixmapPtr pixmap)
|
||||
glamor_name_from_pixmap(PixmapPtr pixmap, CARD16 *stride, CARD32 *size)
|
||||
{
|
||||
glamor_pixmap_private *pixmap_priv;
|
||||
glamor_screen_private *glamor_priv =
|
||||
|
|
@ -663,7 +663,7 @@ glamor_name_from_pixmap(PixmapPtr pixmap)
|
|||
return glamor_egl_dri3_fd_name_from_tex(pixmap->drawable.pScreen,
|
||||
pixmap,
|
||||
pixmap_priv->base.fbo->tex,
|
||||
TRUE, NULL, NULL);
|
||||
TRUE, stride, size);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue