瀏覽代碼

gbm: add gbm_bo_get_device() function

tags/i965-primitive-restart-v2
Ander Conselvan de Oliveira 13 年之前
父節點
當前提交
6c84f2992f
共有 2 個檔案被更改,包括 14 行新增0 行删除
  1. 11
    0
      src/gbm/main/gbm.c
  2. 3
    0
      src/gbm/main/gbm.h

+ 11
- 0
src/gbm/main/gbm.c 查看文件

@@ -231,6 +231,17 @@ gbm_bo_get_handle(struct gbm_bo *bo)
return bo->handle;
}

/** Get the gbm device used to create the buffer object
*
* \param bo The buffer object
* \return Returns the gbm device with which the buffer object was created
*/
GBM_EXPORT struct gbm_device *
gbm_bo_get_device(struct gbm_bo *bo)
{
return bo->gbm;
}

/** Set the user data associated with a buffer object
*
* \param bo The buffer object

+ 3
- 0
src/gbm/main/gbm.h 查看文件

@@ -242,6 +242,9 @@ gbm_bo_get_pitch(struct gbm_bo *bo);
uint32_t
gbm_bo_get_format(struct gbm_bo *bo);

struct gbm_device *
gbm_bo_get_device(struct gbm_bo *bo);

union gbm_bo_handle
gbm_bo_get_handle(struct gbm_bo *bo);


Loading…
取消
儲存