summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/bandwidth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/dc/bandwidth.c')
-rw-r--r--drivers/video/tegra/dc/bandwidth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/tegra/dc/bandwidth.c b/drivers/video/tegra/dc/bandwidth.c
index 4989ba4d096c..181ae5a31af7 100644
--- a/drivers/video/tegra/dc/bandwidth.c
+++ b/drivers/video/tegra/dc/bandwidth.c
@@ -66,7 +66,7 @@ static void tegra_dc_set_latency_allowance(struct tegra_dc *dc,
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
/* tegra_dc_get_bandwidth() treats V filter windows as double
* bandwidth, but LA has a seperate client for V filter */
- if (w->idx == 1 && win_use_v_filter(dc, w))
+ if (w->idx == 1 && win_use_v_filter(dc, w, false))
bw /= 2;
#endif
@@ -211,7 +211,7 @@ static unsigned long tegra_dc_calc_win_bandwidth(struct tegra_dc *dc,
bw *= tiled_windows_bw_multiplier;
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
- if (win_use_v_filter(dc, w))
+ if (win_use_v_filter(dc, w, false))
bw *= 2;
#endif
@@ -220,7 +220,7 @@ static unsigned long tegra_dc_calc_win_bandwidth(struct tegra_dc *dc,
f_h = max(in_h * 100 / w->out_h, 100u);
bw *= f_w;
bw /= 100;
- if (win_use_v_filter(dc, w)) {
+ if (win_use_v_filter(dc, w, w->flags & TEGRA_WIN_FLAG_SCAN_COLUMN)) {
bw *= f_h;
bw /= 100;
}