summaryrefslogtreecommitdiff
path: root/glamor/glamor.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-30 18:41:57 -0800
committerEric Anholt <eric@anholt.net>2014-03-17 14:30:49 -0700
commite23dd41195dfaf1f3e303197845a071d01523618 (patch)
treec0e556894e2e04e70914b51328b247eab42b95c3 /glamor/glamor.h
parent4e21b7ee49bc8f33c6211411d80aa70b16998adc (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.h')
-rw-r--r--glamor/glamor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/glamor/glamor.h b/glamor/glamor.h
index be46a5251..d05d2f4ea 100644
--- a/glamor/glamor.h
+++ b/glamor/glamor.h
@@ -210,7 +210,8 @@ extern _X_EXPORT int glamor_fd_from_pixmap(ScreenPtr screen,
*
* Returns the name on success, -1 on error.
* */
-extern _X_EXPORT int glamor_name_from_pixmap(PixmapPtr pixmap);
+extern _X_EXPORT int glamor_name_from_pixmap(PixmapPtr pixmap,
+ CARD16 *stride, CARD32 *size);
/* @glamor_pixmap_from_fd: Creates a pixmap to wrap a dma-buf fd.
*