hwc: Fix arguments passed to exynos_hwc_initailize_target_window() 17/204017/1
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 18 Apr 2019 10:58:31 +0000 (12:58 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 18 Apr 2019 11:08:36 +0000 (13:08 +0200)
Pass mode->vdisplay as third argument, which is supposed to be display
height, instead of mode->hdisplay. With current code display height will
always be same as display width. Width 360x360 resolution this issue
might not be noticed, but for example with 1440x3040 resolution only half
of display content is visible.

Change-Id: Iba0701f8335005995e9fc482b9523c7c4ec01f80
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
src/tdm_exynos_display.c

index e319af4f85f91f4b044f018548487ce23d9719c0..09ec30bfafb38229ae4adffb4e89b10b4503db17 100644 (file)
@@ -1509,7 +1509,7 @@ exynos_output_set_mode(tdm_output *output, const tdm_output_mode *mode)
 
        /* create or replace the target_window when the output mode is set */
        if (output_data->hwc_enable) {
-               ret = exynos_hwc_initailize_target_window(output_data->hwc_data, mode->hdisplay, mode->hdisplay);
+               ret = exynos_hwc_initailize_target_window(output_data->hwc_data, mode->hdisplay, mode->vdisplay);
                if (ret != TDM_ERROR_NONE) {
                        TDM_ERR("create target hwc window failed (%d)", ret);
                        return ret;