diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-03-17 17:56:49 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:13 -0800 |
commit | d69bf1aa9ddf62411b4e964f69d9f7a4ffb91816 (patch) | |
tree | fd8782722c29bd42d90e7d6f87d463d1061862ab /arch/arm/mach-tegra/include/mach/dc.h | |
parent | 627c235be502ea07cf66fac921af372e15164be9 (diff) |
video: tegra: Allow fractional input rects
This change makes the input rect for Tegra windows be a 20.12
fixed-point number instead of an integer. This allows software to
specify sub-pixel precision.
bug 818525
Original-Change-Id: I130f63b68159ed896d1113ea537307997875ca40
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/40526
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R848e901645aa49776d4dc41fa4210b6b594a8d84
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/dc.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dc.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index bddab09b55de..8500619254e9 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -24,6 +24,7 @@ #include <linux/pm.h> #include <linux/types.h> +#include <drm/drm_fixed.h> #define TEGRA_MAX_DC 2 #define DC_N_WINDOWS 3 @@ -360,10 +361,10 @@ struct tegra_dc_win { unsigned offset_v; unsigned stride; unsigned stride_uv; - unsigned x; - unsigned y; - unsigned w; - unsigned h; + fixed20_12 x; + fixed20_12 y; + fixed20_12 w; + fixed20_12 h; unsigned out_x; unsigned out_y; unsigned out_w; |