change the hwc policy 91/213891/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 16 Sep 2019 07:45:35 +0000 (16:45 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 16 Sep 2019 07:45:35 +0000 (16:45 +0900)
Change-Id: Ie0198cf809d5123a2002aeaf48cd61c33adbc3d2

src/tdm_drm_hwc.c

index 9e45229..c775ff3 100644 (file)
@@ -10,9 +10,9 @@
 #define NUM_LAYERS     4
 #define NUM_BUFFERS    3
 
-#define NUM_UI_LAYERS  2
+#define NUM_UI_LAYERS  1
 
-#define ZPOS_MAX       3
+#define ZPOS_MAX       1
 #define ZPOS_CURSOR    2
 #define ZPOS_1         1
 #define ZPOS_0         0
@@ -152,7 +152,7 @@ _print_validate_result(tdm_drm_hwc_data *hwc_data, tdm_hwc_window **composited_w
                hwc_window_data = composited_wnds[i];
                switch (hwc_window_data->validated_type) {
                case TDM_HWC_WIN_COMPOSITION_CLIENT:
-                       TDM_DBG(" window(%p) %s -> %s : lzpos(%d) -- {%s} on TARGET WINDOW", hwc_window_data,
+                       TDM_INFO(" window(%p) %s -> %s : lzpos(%d) -- {%s} on TARGET WINDOW", hwc_window_data,
                                        _comp_to_str(hwc_window_data->client_type),
                                        _comp_to_str(hwc_window_data->validated_type),
                                        hwc_data->target_hwc_window->lzpos,
@@ -162,7 +162,7 @@ _print_validate_result(tdm_drm_hwc_data *hwc_data, tdm_hwc_window **composited_w
                case TDM_HWC_WIN_COMPOSITION_VIDEO:
                case TDM_HWC_WIN_COMPOSITION_CURSOR:
                case TDM_HWC_WIN_COMPOSITION_NONE:
-                       TDM_DBG(" window(%p) %s -> %s : lzpos(%d) -- {%s}", hwc_window_data,
+                       TDM_INFO(" window(%p) %s -> %s : lzpos(%d) -- {%s}", hwc_window_data,
                                        _comp_to_str(hwc_window_data->client_type),
                                        _comp_to_str(hwc_window_data->validated_type),
                                        hwc_window_data->lzpos,
@@ -307,7 +307,7 @@ _drm_hwc_prepare_commit(tdm_drm_hwc_data *hwc_data)
        /* for debug */
        for (lzpos = NUM_LAYERS -1 ; lzpos >= 0; lzpos--) {
                if (use_layers_zpos[lzpos])
-                       TDM_DBG(" lzpos(%d) : %s", lzpos, use_layers_zpos[lzpos] ? "SET" : "UNSET");
+                       TDM_INFO(" lzpos(%d) : %s", lzpos, use_layers_zpos[lzpos] ? "SET" : "UNSET");
        }
 
        return TDM_ERROR_NONE;
@@ -325,7 +325,7 @@ _drm_hwc_apply_policy(tdm_drm_hwc_data *hwc_data , tdm_hwc_window **composited_w
        int device_count = 0;
        int video_count = 0;
        int cursor_count = 0;
-       int ui_lzpos_top = ZPOS_1;
+       int ui_lzpos_top = ZPOS_0;
        int ui_lzpos_bottom = ZPOS_0;
        int num_ui_layers = NUM_UI_LAYERS;
        int set_clients_below = 0;
@@ -487,7 +487,7 @@ drm_hwc_create_window(tdm_hwc *hwc, tdm_error *error)
 
        LIST_ADDTAIL(&hwc_window_data->link, &hwc_data->hwc_window_list);
 
-       TDM_DBG("hwc_window(%p) create", hwc_window_data);
+       TDM_INFO("hwc_window(%p) create", hwc_window_data);
        if (error)
                *error = TDM_ERROR_NONE;
 
@@ -646,7 +646,7 @@ drm_hwc_accept_validation(tdm_hwc *hwc)
        RETURN_VAL_IF_FAIL(hwc_data != NULL, TDM_ERROR_INVALID_PARAMETER);
        RETURN_VAL_IF_FAIL(hwc_data->output_data != NULL, TDM_ERROR_INVALID_PARAMETER);
 
-       TDM_DBG(" ==============Accept Changes Done=================================");
+       TDM_INFO(" ==============Accept Changes Done=================================");
 
        ret = _drm_hwc_prepare_commit(hwc_data);
        RETURN_VAL_IF_FAIL(ret == TDM_ERROR_NONE, ret);