summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3b5a63a)
do not print error message when the bufmgr_func->bufmgr_alloc_bo_with_format
does not exists. when it does not exists, allocation logic call the
fallback alloc_bo function.
Change-Id: If760eab7372ad67bc032f1ae99c28829ff7fc834
case TBM_MODULE_TYPE_TBM_BACKEND:
bufmgr_func = module->bufmgr_func;
TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func, NULL, *error, TBM_ERROR_INVALID_OPERATION);
case TBM_MODULE_TYPE_TBM_BACKEND:
bufmgr_func = module->bufmgr_func;
TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func, NULL, *error, TBM_ERROR_INVALID_OPERATION);
- TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func->bufmgr_alloc_bo_with_format, NULL, *error, TBM_ERROR_NOT_SUPPORTED);
+ if (!bufmgr_func->bufmgr_alloc_bo_with_format) {
+ *error = TBM_ERROR_NOT_SUPPORTED;
+ return NULL;
+ }
bo_data = bufmgr_func->bufmgr_alloc_bo_with_format(module->bufmgr_data, format, bo_idx, width, height, flags, error);
break;
bo_data = bufmgr_func->bufmgr_alloc_bo_with_format(module->bufmgr_data, format, bo_idx, width, height, flags, error);
break;