fix the zpos of the layers 43/211843/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 9 Aug 2019 08:13:17 +0000 (17:13 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 9 Aug 2019 08:27:14 +0000 (17:27 +0900)
Change-Id: I7a94133ec8cd02140a74bdbe5cb8b62862e8be85

src/tdm_vc4_hwc.c

index 14de29c..2d6a064 100644 (file)
 #define NUM_LAYERS     4
 #define NUM_BUFFERS    3
 
-#define NUM_UI_LAYERS  3
+#define NUM_UI_LAYERS  2
 
-#define ZPOS_MAX       4
-#define ZPOS_CURSOR    3
-#define ZPOS_2         2
+#define ZPOS_MAX       3
+#define ZPOS_CURSOR    2
 #define ZPOS_1         1
 #define ZPOS_0         0
 #define ZPOS_VIDEO1    0
@@ -326,7 +325,7 @@ _vc4_hwc_apply_policy(tdm_vc4_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_2;
+       int ui_lzpos_top = ZPOS_1;
        int ui_lzpos_bottom = ZPOS_0;
        int num_ui_layers = NUM_UI_LAYERS;
        int set_clients_below = 0;