diff options
author | Michael I. Gold <gold@nvidia.com> | 2011-06-14 12:10:44 -0700 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-06-21 14:33:23 -0700 |
commit | a04ba1bd08262e20c5c687f125d0fa3500d4e957 (patch) | |
tree | 3b570e1729c054e3d40856fe7e973da5e35cc15a /drivers/video | |
parent | 82f7aa65a57b808a5b028918c7b1b997f8a76db7 (diff) |
video: tegra: dc: add window inversion interface to overlay driver
Support INVERT_H and INVERT_V flags and pass through to the DC driver.
Also support TILED flag instead of a separate tiled field.
Change-Id: If5aa4e24666020d85272a955ef7b6ce6f70aeccb
Reviewed-on: http://git-master/r/36553
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tegra/dc/overlay.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/video/tegra/dc/overlay.c b/drivers/video/tegra/dc/overlay.c index a9fa6ba24406..530944013f58 100644 --- a/drivers/video/tegra/dc/overlay.c +++ b/drivers/video/tegra/dc/overlay.c @@ -151,6 +151,13 @@ static int tegra_overlay_set_windowattr(struct tegra_overlay_info *overlay, win->flags |= TEGRA_WIN_FLAG_BLEND_PREMULT; else if (flip_win->attr.blend == TEGRA_FB_WIN_BLEND_COVERAGE) win->flags |= TEGRA_WIN_FLAG_BLEND_COVERAGE; + if (flip_win->attr.flags & TEGRA_FB_WIN_FLAG_INVERT_H) + win->flags |= TEGRA_WIN_FLAG_INVERT_H; + if (flip_win->attr.flags & TEGRA_FB_WIN_FLAG_INVERT_V) + win->flags |= TEGRA_WIN_FLAG_INVERT_V; + if (flip_win->attr.flags & TEGRA_FB_WIN_FLAG_TILED) + win->flags |= TEGRA_WIN_FLAG_TILED; + win->fmt = flip_win->attr.pixformat; win->x = flip_win->attr.x; win->y = flip_win->attr.y; @@ -194,8 +201,6 @@ static int tegra_overlay_set_windowattr(struct tegra_overlay_info *overlay, win->offset_v = flip_win->attr.offset_v + flip_win->attr.offset; win->stride = flip_win->attr.stride; win->stride_uv = flip_win->attr.stride_uv; - if (flip_win->attr.tiled) - win->flags |= TEGRA_WIN_FLAG_TILED; if ((s32)flip_win->attr.pre_syncpt_id >= 0) { nvhost_syncpt_wait_timeout(&overlay->ndev->host->syncpt, |