From 84d2f6d1cb3fc8ae8b448ca164da587b5a807327 Mon Sep 17 00:00:00 2001 From: Xuelian Bai Date: Tue, 4 Jun 2019 19:57:32 +0800 Subject: [PATCH] Fix tiled format issue. 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 --- src/tbm_surface_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index db42c4e..dc29a5e 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -860,7 +860,7 @@ tbm_surface_internal_create_with_flags(int width, int height, 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"); -- 2.34.1