summaryrefslogtreecommitdiff
path: root/glamor/glamor.h
diff options
context:
space:
mode:
authorAxel Davy <axel.davy@ens.fr>2013-11-18 22:52:22 +0100
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:54 -0800
commita5321ea431376feca2dcd55cf04925dc492270fc (patch)
treec516814c258cfef66be1955a6c8efd42b3f2ec9d /glamor/glamor.h
parent403004fe799f293bf299fe78da821635b19d9a1a (diff)
Allow to create textured pixmaps from gbm_bo without using gem names
This implements glamor_egl_create_textured_pixmap_from_gbm_bo, which is similar to glamor_egl_create_textured_pixmap, except it takes a gbm_bo as argument. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor.h')
-rw-r--r--glamor/glamor.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/glamor/glamor.h b/glamor/glamor.h
index c143c4dcb..927892fd6 100644
--- a/glamor/glamor.h
+++ b/glamor/glamor.h
@@ -230,6 +230,19 @@ extern _X_EXPORT Bool glamor_egl_create_textured_pixmap(PixmapPtr pixmap,
int handle,
int stride);
+/*
+ * @glamor_egl_create_textured_pixmap_from_bo: Try to create a textured pixmap
+ * from a gbm_bo.
+ *
+ * @pixmap: The pixmap need to be processed.
+ * @bo: a pointer on a gbm_bo structure attached to this pixmap at DDX layer.
+ *
+ * This function is similar to glamor_egl_create_textured_pixmap.
+ */
+extern _X_EXPORT Bool
+ glamor_egl_create_textured_pixmap_from_gbm_bo(PixmapPtr pixmap,
+ void *bo);
+
extern _X_EXPORT void glamor_egl_destroy_textured_pixmap(PixmapPtr pixmap);
#endif