From 0ef32010e2cf82cfbba371f79c219c5c8ede9620 Mon Sep 17 00:00:00 2001 From: Roman Marchenko Date: Fri, 5 Feb 2016 11:36:28 +0200 Subject: shm: add TBM_CACHE_CTRL_BACKEND to avoid controlling of caching in libtbm Change-Id: I3c72546213c9f9edf1162180a238f6ed8f5810ff Signed-off-by: Roman Marchenko --- src/tbm_bufmgr_shm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tbm_bufmgr_shm.c b/src/tbm_bufmgr_shm.c index 17e86b6..4aeae70 100644 --- a/src/tbm_bufmgr_shm.c +++ b/src/tbm_bufmgr_shm.c @@ -301,7 +301,7 @@ tbm_shm_bo_free(tbm_bo bo) bo_shm = (tbm_bo_shm)tbm_backend_get_bo_priv(bo); SHM_RETURN_IF_FAIL (bo_shm!=NULL); - DBG (" [%s] bo:%p, gem:%d(%d), size:%d\n",target_name(), + DBG (" [%s] bo:%p, shm:%d(%d), size:%d\n",target_name(), bo, bo_shm->shmid, bo_shm->key, bo_shm->size); @@ -1108,7 +1108,7 @@ init_tbm_bufmgr_priv (tbm_bufmgr bufmgr, int fd) bufmgr_backend->fd_to_handle = NULL; bufmgr_backend->surface_get_num_bos = tbm_shm_surface_get_num_bos; - bufmgr_backend->flags = 0; + bufmgr_backend->flags = TBM_CACHE_CTRL_BACKEND; bufmgr_backend->bo_lock = NULL; bufmgr_backend->bo_unlock = NULL; -- cgit v1.2.3