close(fp);
}
+ /* get the model name from the capi-system-info.
+ * The alignment_plane and alignment_pitch_rgb is different accoring to the target.
+ * There will be the stride issue when the right alignment_plane and alignment_pitch_rgb
+ * is not set to the backend.
+ */
+ char *value = NULL;
+ if (system_info_get_platform_string("http://tizen.org/system/model_name", &value) != SYSTEM_INFO_ERROR_NONE) {
+ TBM_EXYNOS_ERROR("Cannot get the \"http://tizen.org/system/model_name\" key value from system-info.\n");
+ TBM_EXYNOS_ERROR("May not set the right value on libtbm-exynos backend.\n");
+ } else {
+ if (!strncmp(value, "TW1", 4)) {
+ g_tbm_surface_alignment_plane = 8;
+ g_tbm_surface_alignment_pitch_rgb = 8;
+ g_enable_cache_ctrl = 1;
+ } else {
+ g_tbm_surface_alignment_plane = 64;
+ g_tbm_surface_alignment_pitch_rgb = 64;
+ }
+ }
+
+ free(value);
+
if (!_bufmgr_init_cache_state(bufmgr_exynos)) {
TBM_EXYNOS_ERROR("fail to init bufmgr cache state\n");
goto fail_init_cache_state;
goto fail_init_backend;
}
- /* get the model name from the capi-system-info.
- * The alignment_plane and alignment_pitch_rgb is different accoring to the target.
- * There will be the stride issue when the right alignment_plane and alignment_pitch_rgb
- * is not set to the backend.
- */
- char *value = NULL;
- if (system_info_get_platform_string("http://tizen.org/system/model_name", &value) != SYSTEM_INFO_ERROR_NONE) {
- TBM_EXYNOS_ERROR("Cannot get the \"http://tizen.org/system/model_name\" key value from system-info.\n");
- TBM_EXYNOS_ERROR("May not set the right value on libtbm-exynos backend.\n");
- } else {
- if (!strncmp(value, "TW1", 4)) {
- g_tbm_surface_alignment_plane = 8;
- g_tbm_surface_alignment_pitch_rgb = 8;
- g_enable_cache_ctrl = 1;
- } else {
- g_tbm_surface_alignment_plane = 64;
- g_tbm_surface_alignment_pitch_rgb = 64;
- }
- }
-
- free(value);
-
#ifdef DEBUG
{
char *env;