TBM_SNRPRINTF(str, len, c, " bo:%-12p %-26d%-10d\n",
surf->bos[i],
surf->bos[i]->ref_cnt,
- bufmgr->backend->bo_size(surf->bos[i]) / 1024);
+ size / 1024);
}
}
} else
if (!LIST_IS_EMPTY(&bufmgr->bo_list)) {
int bo_cnt = 0;
tbm_bo bo = NULL;
+ tbm_key key = 0;
LIST_FOR_EACH_ENTRY(bo, &bufmgr->bo_list, item_link) {
if (bufmgr->backend_module_data) {
size = bufmgr->bo_func->bo_get_size(bo->bo_data, &error);
if (error != TBM_ERROR_NONE)
TBM_WRN("fail to get the size of bo.");
- } else
+ key = bufmgr->bo_func->bo_export_key(bo->bo_data, &error);
+ if (error != TBM_ERROR_NONE)
+ TBM_WRN("fail to get the tdm_key of bo.");
+ } else {
size = bufmgr->backend->bo_size(bo);
+ key = bufmgr->backend->bo_export(bo);
+ }
TBM_SNRPRINTF(str, len, c, "%-4d%-11p %-4d %-6d %-5d %-4u %-3d %-11p %-4d\n",
++bo_cnt,
bo,
bo->map_cnt,
bo->flags,
bo->surface,
- bufmgr->backend->bo_export(bo));
+ key);
}
} else
TBM_SNRPRINTF(str, len, c, "no tbm_bos.\n");