diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2011-07-29 20:43:12 +0900 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2011-07-29 21:11:19 +0900 |
commit | 25e041367040b6faadebc38acd44e96b8e29a5ab (patch) | |
tree | cfd83cb658e60000e29b60cd87913078ee3262ec /gralloc.c | |
parent | 2fc5da4da12c8fa36044acc58856b0e460e70621 (diff) | |
download | external_drm_gralloc-25e041367040b6faadebc38acd44e96b8e29a5ab.zip external_drm_gralloc-25e041367040b6faadebc38acd44e96b8e29a5ab.tar.gz external_drm_gralloc-25e041367040b6faadebc38acd44e96b8e29a5ab.tar.bz2 |
map a bo only when it is locked for CPU access
To match the doc a little better.
Diffstat (limited to 'gralloc.c')
-rw-r--r-- | gralloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -149,7 +149,7 @@ static int drm_mod_lock(const gralloc_module_t *mod, buffer_handle_t handle, if (!bo) return -EINVAL; - return gralloc_drm_bo_map(bo, x, y, w, h, 1, ptr); + return gralloc_drm_bo_lock(bo, usage, x, y, w, h, ptr); } static int drm_mod_unlock(const gralloc_module_t *mod, buffer_handle_t handle) @@ -161,7 +161,7 @@ static int drm_mod_unlock(const gralloc_module_t *mod, buffer_handle_t handle) if (!bo) return -EINVAL; - gralloc_drm_bo_unmap(bo); + gralloc_drm_bo_unlock(bo); return 0; } |