diff options
author | Jon Mayo <jmayo@nvidia.com> | 2011-08-31 13:26:43 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:23:36 -0700 |
commit | c7fdabbd7bfc7fe10a93c5e61864afe185d09cf2 (patch) | |
tree | 2a76e1d389b8eb066fdbc401e40a954bd0ede74e /include | |
parent | 737d17d18afd7df072ae1efc5d53ea9b5da16e88 (diff) |
video: tegra: dc: add per window global alpha
Adds a global alpha parameter to each window. It provides a default
alpha value for pixel formats that do not include alpha.
Change-Id: I5465864877a727b4daed0eb32fb8219e2ccb663e
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/101806
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Rebase-Id: Rbca65e11501f8721a596b4906aaa767791868cda
Diffstat (limited to 'include')
-rw-r--r-- | include/video/tegra_dc_ext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h index f46074b1e559..76bb34b01af1 100644 --- a/include/video/tegra_dc_ext.h +++ b/include/video/tegra_dc_ext.h @@ -59,6 +59,7 @@ #define TEGRA_DC_EXT_FLIP_FLAG_INVERT_V (1 << 1) #define TEGRA_DC_EXT_FLIP_FLAG_TILED (1 << 2) #define TEGRA_DC_EXT_FLIP_FLAG_CURSOR (1 << 3) +#define TEGRA_DC_EXT_FLIP_FLAG_GLOBAL_ALPHA (1 << 4) struct tegra_dc_ext_flip_windowattr { __s32 index; @@ -91,8 +92,10 @@ struct tegra_dc_ext_flip_windowattr { __u32 buff_id_u; __u32 buff_id_v; __u32 flags; + __u8 global_alpha; /* requires TEGRA_DC_EXT_FLIP_FLAG_GLOBAL_ALPHA */ /* Leave some wiggle room for future expansion */ - __u32 pad[5]; + __u8 pad1[3]; + __u32 pad2[4]; }; #define TEGRA_DC_EXT_FLIP_N_WINDOWS 3 |