From 6d1a8b6de50a19cd48f174faae36920122dcab15 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Wed, 30 Jan 2019 00:13:45 +0800 Subject: [PATCH] vpp: disable sr scale up when vskip > 2 [1/1] PD#TV-2331 Problem: SR insert unnecessary scale up to make scale down ratio too larger. Solution: disable SR core0 which is before pps when mif vskip is > 2 Verify: Locally on X301 Change-Id: I810fbae20f337e6eeb0a8e88d9758f78ad224254 Signed-off-by: Brian Zhu --- drivers/amlogic/media/video_sink/vpp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/amlogic/media/video_sink/vpp.c b/drivers/amlogic/media/video_sink/vpp.c index d2f781268848..2535a42d695b 100644 --- a/drivers/amlogic/media/video_sink/vpp.c +++ b/drivers/amlogic/media/video_sink/vpp.c @@ -1927,6 +1927,14 @@ static void vpp_set_super_scaler( next_frame_par->supsc0_hori_ratio = 0; next_frame_par->supsc0_vert_ratio = 0; } + + /* much vskip case, no need super scale up */ + if (next_frame_par->vscale_skip_count >= 2) { + next_frame_par->supsc0_enable = 0; + next_frame_par->supsc0_hori_ratio = 0; + next_frame_par->supsc0_vert_ratio = 0; + } + if (bypass_sr1 || !(sr_support & SUPER_CORE1_SUPPORT)) { next_frame_par->supsc1_enable = 0; next_frame_par->supsc1_hori_ratio = 0;