When flags are not tiled, don't call bufmgr_alloc_bo_with_tiled.
Or, performance down will happen.
Change-Id: Ib15094db7a1d614772f9c161549aa3b63f69d738
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
surf->bos[i] = bo;
/* LCOV_EXCL_STOP */
- } else if (bufmgr->bufmgr_func->bufmgr_alloc_bo_with_tiled_format) {
+ } else if (bufmgr->bufmgr_func->bufmgr_alloc_bo_with_tiled_format && (flags & TBM_BO_TILED)) {
bo = calloc(1, sizeof(struct _tbm_bo));
if (!bo) {
TBM_ERR("fail to alloc bo struct\n");