diff options
-rw-r--r-- | drivers/video/tegra/dc/ext/dev.c | 2 | ||||
-rw-r--r-- | include/video/tegra_dc_ext.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/video/tegra/dc/ext/dev.c b/drivers/video/tegra/dc/ext/dev.c index a6290d4701ce..8ac008b072ad 100644 --- a/drivers/video/tegra/dc/ext/dev.c +++ b/drivers/video/tegra/dc/ext/dev.c @@ -189,6 +189,8 @@ static int tegra_dc_ext_set_windowattr(struct tegra_dc_ext *ext, win->flags |= TEGRA_WIN_FLAG_BLEND_PREMULT; else if (flip_win->attr.blend == TEGRA_DC_EXT_BLEND_COVERAGE) win->flags |= TEGRA_WIN_FLAG_BLEND_COVERAGE; + if (flip_win->attr.flags & TEGRA_DC_EXT_FLIP_FLAG_TILED) + win->flags |= TEGRA_WIN_FLAG_TILED; win->fmt = flip_win->attr.pixformat; win->x.full = flip_win->attr.x; win->y.full = flip_win->attr.y; diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h index 380b026701d7..2c4ce57e5c00 100644 --- a/include/video/tegra_dc_ext.h +++ b/include/video/tegra_dc_ext.h @@ -55,6 +55,8 @@ #define TEGRA_DC_EXT_BLEND_PREMULT 1 #define TEGRA_DC_EXT_BLEND_COVERAGE 2 +#define TEGRA_DC_EXT_FLIP_FLAG_TILED (1 << 2) + struct tegra_dc_ext_flip_windowattr { __s32 index; __u32 buff_id; @@ -82,11 +84,12 @@ struct tegra_dc_ext_flip_windowattr { struct timespec timestamp; __u32 pre_syncpt_id; __u32 pre_syncpt_val; - /* These are optional; if zero, U and V are taken from buff_id */ + /* These two are optional; if zero, U and V are taken from buff_id */ __u32 buff_id_u; __u32 buff_id_v; + __u32 flags; /* Leave some wiggle room for future expansion */ - __u32 pad[6]; + __u32 pad[5]; }; #define TEGRA_DC_EXT_FLIP_N_WINDOWS 3 |