amvecm: fix SDR to HDR function has no effect [1/1]

PD#SWPL-16893

Problem:
The SDR to HDR function has no effect

Solution:
add sdr_mode changed judgement

Verify:
on P212

Change-Id: Ie3f03a51797f23866a6a6d1fb2c3c750741032f1
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
This commit is contained in:
Cheng Wang
2019-11-22 19:21:16 +08:00
committed by Chris KIM
parent 76a12ae27c
commit 52f3fcc3c5

View File

@@ -7550,6 +7550,18 @@ int amvecm_matrix_process(
vd_path + 1);
}
/* gxl handle sdr_mode change bug fix. */
if ((vinfo->hdr_info.hdr_support & 0x4) &&
!cpu_after_eq(MESON_CPU_MAJOR_ID_G12A) &&
vinfo->viu_color_fmt != COLOR_FMT_RGB444) {
if (sdr_mode != cur_sdr_mode) {
force_fake = true;
cur_sdr_mode = sdr_mode;
pr_csc(4, "vd%d: sdr_mode changed\n",
vd_path + 1);
}
}
/* handle sdr_mode change */
if (is_video_layer_on(vd_path) &&
(vinfo->hdr_info.hdr_support & 0x4) &&