di: if not support afbc, do not set the afbc type [1/1]

PD#SWPL-18701

Problem:
Even if the DI module does not support afbc format,
it still sets the afbc type in vframe.

Solution:
Add afbc support checking

Verify:
Verified by p212

Change-Id: I29fe433f38c80c8c66209556f8cb6b88a015a2de
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
This commit is contained in:
Brian Zhu
2019-12-19 15:59:35 +08:00
committed by Chris KIM
parent abbd4bf13d
commit 45bbd0d1cd

View File

@@ -4180,7 +4180,8 @@ static unsigned char pre_de_buf_config(void)
/*for support compress from dec*/
if (IS_COMP_MODE(vframe->type) &&
!is_bypass(vframe)) {
!is_bypass(vframe) &&
afbc_is_supported()) {
is_afbc_mode = true;
if (IS_VDIN_SRC(vframe->source_type)
&& IS_I_SRC(vframe->type)) {