hwc: fix the problem that target window and device window use same lzpos 65/298865/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 14 Sep 2023 10:11:46 +0000 (19:11 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 14 Sep 2023 10:11:46 +0000 (19:11 +0900)
Change-Id: I4752b6e4a0d370d42104c0e01db0bb3fa760ef42

src/tdm_vc4_hwc.c

index 5088fba..1e6b6ec 100644 (file)
@@ -597,9 +597,9 @@ _vc4_hwc_apply_policy(tdm_vc4_hwc *hwc_data , hal_tdm_hwc_window **composited_wn
 
        if (num_layers > (device_count + video_count)) {
                if (hwc_data->need_target_window)
-                       lzpos_top = lzpos_bottom + device_count - 1;
+                       lzpos_top = lzpos_bottom + device_count;
                else
-                       lzpos_top = lzpos_bottom + device_count + video_count - 1;
+                       lzpos_top = lzpos_bottom + device_count + video_count;
        }
 
        /* 3. set lzpos and modify validate_type with target_window */