diff options
Diffstat (limited to 'gralloc_drm.c')
-rw-r--r-- | gralloc_drm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gralloc_drm.c b/gralloc_drm.c index 53d764a..3006a9f 100644 --- a/gralloc_drm.c +++ b/gralloc_drm.c @@ -262,6 +262,7 @@ static struct gralloc_drm_handle_t *create_bo_handle(int width, handle->height = height; handle->format = format; handle->usage = usage; + handle->plane_mask = 0; return handle; } @@ -279,6 +280,8 @@ struct gralloc_drm_bo_t *gralloc_drm_bo_create(struct gralloc_drm_t *drm, if (!handle) return NULL; + handle->plane_mask = planes_for_format(drm, format); + bo = drm->drv->alloc(drm->drv, handle); if (!bo) { free(handle); |