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_drm_priv.h | |
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_drm_priv.h')
-rw-r--r-- | gralloc_drm_priv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gralloc_drm_priv.h b/gralloc_drm_priv.h index 0838db7..ada152d 100644 --- a/gralloc_drm_priv.h +++ b/gralloc_drm_priv.h @@ -107,6 +107,9 @@ struct gralloc_drm_bo_t { int imported; /* the handle is from a remote proces when true */ int fb_handle; /* the GEM handle of the bo */ int fb_id; /* the fb id */ + + int lock_count; + int locked_for; }; struct gralloc_drm_drv_t *gralloc_drm_drv_create_for_pipe(int fd, const char *name); |