From 36284052749cecb6e41236749e60ad013e9453e9 Mon Sep 17 00:00:00 2001 From: Robert Morell Date: Tue, 11 Oct 2011 16:14:25 -0700 Subject: video: tegra: Add support for tiled surfaces This adds a new flags field to the dc_ext flip ioctl, adds a flag for tiled surfaces, and updates the ioctl handling code to set the appropriate core dc tiling flag when the dc_ext tiled flag is passed. Bug 831397 Change-Id: I36cbf4a59173885a98209e559f77404bddcf54cd Reviewed-on: http://git-master/r/64109 Reviewed-by: Michael Frydrych Tested-by: Michael Frydrych Reviewed-by: Markus Holtmanns Reviewed-by: Jon Mayo Reviewed-by: Robert Morell Rebase-Id: Rf741be9e6945b6b92699e26fb1745fafef4d8fe4 --- include/video/tegra_dc_ext.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/video') 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 -- cgit v1.2.3