Commits
Richard Liu committed 6536e9ec8c2
MA-14108 Switch camera csc use CPU on 8mq 8mq board use software encoder as no VPU hardware encoder. Android framework will set read often flag (usage 0x20306) when allocate buffer for software encoder as it needs CPU access. ION buffer default is cacheable in kernel, when do ion_mmap() if buffer flag include ION_FLAG_CACHED it will mmap as cacheable if not it will mmap as writecombine. When buffer usage include read often that means CPU may access this buffer, gralloc will try to allocate cacheable buffer with ION_FLAG_CACHED. Camera recording has dirty line issue when use OpenCL to do csc with cacheable ION buffer, root cause is GPU will skip flush cache for ION buffer (um->type != UM_PAGE_MAP), it is a known limitation. Use CPU CSC instead of OpenCL to avoid the issue, the cpu loading and recorded video frame rate no big gap. Change-Id: I929a1215703a1b2c69861a3a757b11f7b9bb5c44 Signed-off-by: Richard Liu <xuegang.liu@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/11125 Reviewed-by: guoyin.chen <guoyin.chen@nxp.com>