diff options
author | Kristian Høgsberg <[email protected]> | 2012-05-02 15:30:13 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2012-05-03 10:57:32 -0400 |
commit | 4fddb2ba21add1c1968330e5224ecead59da3995 (patch) | |
tree | 20b7a7e683f135f90e2fb5b67f1856e0f038e44b /src/gbm/main/gbmint.h | |
parent | b4789860c4416ba700ac5edeb692b59e33d45276 (diff) |
gbm: Add gbm_bo_write entry point
This new gbm entry point allows writing data into a gbm bo. The bo has
to be created with the GBM_BO_USE_WRITE flag, and it's only required to
work for GBM_BO_USE_CURSOR_64X64 bos.
The gbm API is designed to be the glue layer between EGL and KMS, but there
was never a mechanism initialize a buffer suitable for use with KMS
hw cursors. The hw cursor bo is typically not compatible with anything EGL
can render to, and thus there's no way to get data into such a bo.
gbm_bo_write() fills that gap while staying out of the efficient
cpu->gpu pixel transfer business.
Reviewed-by: Ander Conselvan de Oliveira <[email protected]>
Diffstat (limited to 'src/gbm/main/gbmint.h')
-rw-r--r-- | src/gbm/main/gbmint.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h index 0e98bdf3d8d..8eb8671aeb2 100644 --- a/src/gbm/main/gbmint.h +++ b/src/gbm/main/gbmint.h @@ -70,6 +70,7 @@ struct gbm_device { void *egl_dpy, void *egl_img, uint32_t width, uint32_t height, uint32_t usage); + int (*bo_write)(struct gbm_bo *bo, const void *buf, size_t data); void (*bo_destroy)(struct gbm_bo *bo); struct gbm_surface *(*surface_create)(struct gbm_device *gbm, |