diff options
author | Eric Anholt <eric@anholt.net> | 2013-12-30 18:41:57 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-17 14:30:49 -0700 |
commit | e23dd41195dfaf1f3e303197845a071d01523618 (patch) | |
tree | c0e556894e2e04e70914b51328b247eab42b95c3 /glamor/glamor.c | |
parent | 4e21b7ee49bc8f33c6211411d80aa70b16998adc (diff) |
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>
Diffstat (limited to 'glamor/glamor.c')
-rw-r--r-- | glamor/glamor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c index e298b04cb..5338d45b4 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -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; } |