hwc: add define NUM_UI_LAYERS 16/204716/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 26 Apr 2019 02:22:37 +0000 (11:22 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 26 Apr 2019 02:22:52 +0000 (11:22 +0900)
Change-Id: I3a6c500f562fdc9ea381044708ead6af9940409f

src/tdm_exynos_hwc.c

index e2ab98704696ea0d80547cadcfbe2d9e6726a39f..46ba1a6dd7faf8179f16b8d39f3495418aa4c644 100644 (file)
@@ -5,17 +5,19 @@
 #include <tdm_helper.h>
 #include "tdm_exynos.h"
 
-#define MIN_WIDTH   32
+#define MIN_WIDTH      32
 
-#define NUM_LAYERS  3
-#define NUM_BUFFERS 3
+#define NUM_LAYERS     3
+#define NUM_BUFFERS    3
 
-#define ZPOS_MAX  3
-#define ZPOS_2    2
-#define ZPOS_1    1
-#define ZPOS_0    0
-#define ZPOS_VIDEO1  0
-#define ZPOS_NONE    -999
+#define NUM_UI_LAYERS  3
+
+#define ZPOS_MAX       3
+#define ZPOS_2         2
+#define ZPOS_1         1
+#define ZPOS_0         0
+#define ZPOS_VIDEO1    0
+#define ZPOS_NONE      -999
 
 tbm_format hwc_window_video_formats[] = {
        TBM_FORMAT_ARGB8888,
@@ -214,7 +216,7 @@ _exynos_hwc_apply_policy(tdm_exynos_hwc_data *hwc_data , tdm_hwc_window **compos
        int video_count = 0;
        int ui_lzpos_top = ZPOS_2;
        int ui_lzpos_bottom = ZPOS_0;
-       int num_ui_layers = NUM_LAYERS;
+       int num_ui_layers = NUM_UI_LAYERS;
        int set_clients_below = 0;
        int i = 0;
 
@@ -262,7 +264,7 @@ _exynos_hwc_apply_policy(tdm_exynos_hwc_data *hwc_data , tdm_hwc_window **compos
        }
 
        /* 2. check need target window and set ui_lzpos top and bottom */
-       num_ui_layers = NUM_LAYERS;
+       num_ui_layers = NUM_UI_LAYERS;
 
        if (video_count > 0) {
                ui_lzpos_bottom++;