diff options
author | Chong Zhang <chzhang@nvidia.com> | 2011-01-28 17:15:34 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:44:52 -0800 |
commit | e9c24dde46aa217af89db218551b5e1cc333bbf4 (patch) | |
tree | e56f2ba8ec5a067eeec7aa402d7198c7ab24d903 /drivers/video/tegra/fb.c | |
parent | 0c7c70d840e19e48dba89ac28ca08651753eae3d (diff) |
video: tegra: fix max yres in stereo hdmi case
tegra_fb_set_windowattr() has logic to adjust
window y according to yres, however when in stereo
mode, the max y allowed should be v_active, which
could be larger than yres.
bug 784597
Original-Change-Id: I63342be8e2d87396502574f3a8dd0fb2769a47a8
Reviewed-on: http://git-master/r/17537
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R89099fab6efe7e2187645ef10e627f0d84be1f1b
Diffstat (limited to 'drivers/video/tegra/fb.c')
-rw-r--r-- | drivers/video/tegra/fb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 72583977fa8f..9b7d5f8e8e3d 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -39,6 +39,7 @@ #include "host/dev.h" #include "nvmap/nvmap.h" +#include "dc/dc_priv.h" struct tegra_fb_info { struct tegra_dc_win *win; @@ -398,8 +399,8 @@ static int tegra_fb_set_windowattr(struct tegra_fb_info *tegra_fb, return 0; } - xres = tegra_fb->info->var.xres; - yres = tegra_fb->info->var.yres; + xres = tegra_fb->win->dc->mode.h_active; + yres = tegra_fb->win->dc->mode.v_active; win->flags = TEGRA_WIN_FLAG_ENABLED; if (flip_win->attr.blend == TEGRA_FB_WIN_BLEND_PREMULT) |