summaryrefslogtreecommitdiffstats
path: root/src/gbm
diff options
context:
space:
mode:
authorHeinrich <[email protected]>2019-04-30 14:21:04 +0200
committerEric Engestrom <[email protected]>2019-05-02 20:36:38 +0000
commit9b80322532ef62e9995863af2853107458048628 (patch)
tree5bb7208c588875582b7595290607553a8c158ca5 /src/gbm
parent62001f3dff8957005f15bd6401c917abf6cec321 (diff)
gbm: Improve documentation of BO import
- Add GBM_BO_IMPORT_FD_MODIFIER to documentation of supported foreign object types - Add newline before documentation block - Improve language Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/main/gbm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c
index 250151871d9..38480ca966c 100644
--- a/src/gbm/main/gbm.c
+++ b/src/gbm/main/gbm.c
@@ -490,17 +490,19 @@ gbm_bo_create_with_modifiers(struct gbm_device *gbm,
return gbm->bo_create(gbm, width, height, format, 0, modifiers, count);
}
+
/**
- * Create a gbm buffer object from an foreign object
+ * Create a gbm buffer object from a foreign object
*
* This function imports a foreign object and creates a new gbm bo for it.
- * This enabled using the foreign object with a display API such as KMS.
- * Currently three types of foreign objects are supported, indicated by the type
+ * This enables using the foreign object with a display API such as KMS.
+ * Currently these types of foreign objects are supported, indicated by the type
* argument:
*
* GBM_BO_IMPORT_WL_BUFFER
* GBM_BO_IMPORT_EGL_IMAGE
* GBM_BO_IMPORT_FD
+ * GBM_BO_IMPORT_FD_MODIFIER
*
* The gbm bo shares the underlying pixels but its life-time is
* independent of the foreign object.