diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2013-12-07 23:19:28 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-12-07 23:19:28 -0800 |
commit | 1dfaed1ca45d7672fb308873ce977624331aacc6 (patch) | |
tree | 0e7c12dadbb483028b23d7fb6da1c654ffe9a87d /libcopybit | |
parent | 83593a3aeb84cfca5fdeece6dd51b13a1ffb7c9f (diff) | |
parent | 2babecc511488f806d1ab13ab5360d9ab02a2ae3 (diff) | |
download | display-1dfaed1ca45d7672fb308873ce977624331aacc6.tar.gz |
Merge "copybit: Set default value on COPYBIT_TRANSFORM for Color layer."
Diffstat (limited to 'libcopybit')
-rw-r--r-- | libcopybit/copybit.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index 47d9b937..9558f692 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -637,6 +637,7 @@ static int fill_color(struct copybit_device_t *dev, return -EINVAL; } + int status = 0; struct blitReq* list = &ctx->list; mdp_blit_req* req = &list->req[list->count++]; set_infos(ctx, req, MDP_SOLID_FILL); @@ -654,7 +655,11 @@ static int fill_color(struct copybit_device_t *dev, req->const_color.b = (uint32_t)((color >> 16) & 0xff); req->const_color.alpha = (uint32_t)((color >> 24) & 0xff); - int status = msm_copybit(ctx, list); + if (list->count == sizeof(list->req)/sizeof(list->req[0])) { + status = msm_copybit(ctx, list); + list->sync.acq_fen_fd_cnt = 0; + list->count = 0; + } return status; } |