hwc: set the video window to the hw layer regardless of device window 85/298785/3 accepted/tizen/unified/20230914.100400
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 13 Sep 2023 10:55:08 +0000 (19:55 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 13 Sep 2023 11:34:41 +0000 (20:34 +0900)
Change-Id: I101b67b8c31a1c801bec66d12729bbc0224b44dc

src/tdm_vc4_hwc.c

index 5692263..5088fba 100644 (file)
@@ -552,11 +552,10 @@ _vc4_hwc_apply_policy(tdm_vc4_hwc *hwc_data , hal_tdm_hwc_window **composited_wn
                return;
        }
 
-       /* 1. first check validate_type without target_window */
+       /* 1. first check validate_type without target_window and video */
        for (i = 0; i < num_wnds; i++) {
                switch (composited_list[i]->client_type) {
                case HAL_TDM_HWC_WIN_COMPOSITION_VIDEO:
-                       if (num_layers <= 0) break;
                        composited_list[i]->validated_type = HAL_TDM_HWC_WIN_COMPOSITION_VIDEO;
                        video_count++;
                        continue;
@@ -586,7 +585,7 @@ _vc4_hwc_apply_policy(tdm_vc4_hwc *hwc_data , hal_tdm_hwc_window **composited_wn
                set_clients_below = 1;
        }
 
-       /* 2. check need target window and set ui_lzpos top and bottom */
+       /* 2. check need target window and set lzpos top and bottom */
        num_layers = output_data->overlay_layer_count + 1;
 
        if ((client_count > 0) || ((device_count + video_count) > num_layers)) {