vpp: if vinfo mode is null or invalid, not update post2_matirx [1/1]

PD#SWPL-11561

Problem:
UI display abnormal when switch from sdr tv to dv tv,
issue happened when dv tv support hdr also, it first
switch to hdr mode, then switch agian to dv mode.

Solution:
if vinfo mode is null or invalid, not update post2_matirx

Verify:
Verify on sm1

Change-Id: I6cc87ae2d5569d66b312bf47508e626298f9f98a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
This commit is contained in:
Pengcheng Chen
2019-08-01 16:16:24 +08:00
committed by Tao Zeng
parent 68c15bcce1
commit 3ea69f24ad

View File

@@ -6839,7 +6839,8 @@ static void video_process(
if (get_cpu_type() >= MESON_CPU_MAJOR_ID_G12A) {
if (vinfo->viu_color_fmt != COLOR_FMT_RGB444)
mtx_setting(POST2_MTX, MATRIX_NULL, MTX_OFF);
else
else if (!(vinfo->mode == VMODE_NULL ||
vinfo->mode == VMODE_INVALID))
mtx_setting(POST2_MTX,
MATRIX_YUV709_RGB, MTX_ON);
}