summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2019-09-16 16:45:35 +0900
committerSooChan Lim <sc1.lim@samsung.com>2019-09-16 16:45:35 +0900
commita7a1cb519b6a03e14f8b09351133eed3274f69d5 (patch)
tree2561bc715add4b9cddc7ad27d144d428fc02b177
parentf79f46819ca99d525c13f128b9c4809169f60ccd (diff)
downloadlibtdm-drm-a7a1cb519b6a03e14f8b09351133eed3274f69d5.tar.gz
libtdm-drm-a7a1cb519b6a03e14f8b09351133eed3274f69d5.tar.bz2
libtdm-drm-a7a1cb519b6a03e14f8b09351133eed3274f69d5.zip
change the hwc policy
Change-Id: Ie0198cf809d5123a2002aeaf48cd61c33adbc3d2
-rw-r--r--src/tdm_drm_hwc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tdm_drm_hwc.c b/src/tdm_drm_hwc.c
index 9e45229..c775ff3 100644
--- a/src/tdm_drm_hwc.c
+++ b/src/tdm_drm_hwc.c
@@ -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);