summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/fb.c
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2011-03-17 17:56:49 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:13 -0800
commitd69bf1aa9ddf62411b4e964f69d9f7a4ffb91816 (patch)
treefd8782722c29bd42d90e7d6f87d463d1061862ab /drivers/video/tegra/fb.c
parent627c235be502ea07cf66fac921af372e15164be9 (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 'drivers/video/tegra/fb.c')
-rw-r--r--drivers/video/tegra/fb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index a3d5c26289dd..6aff1cab30d4 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -138,8 +138,8 @@ static int tegra_fb_set_par(struct fb_info *info)
tegra_dc_set_fb_mode(tegra_fb->win->dc, info->mode, stereo);
- tegra_fb->win->w = info->mode->xres;
- tegra_fb->win->h = info->mode->yres;
+ tegra_fb->win->w.full = dfixed_const(info->mode->xres);
+ tegra_fb->win->h.full = dfixed_const(info->mode->yres);
tegra_fb->win->out_w = info->mode->xres;
tegra_fb->win->out_h = info->mode->yres;
}
@@ -446,10 +446,10 @@ struct tegra_fb_info *tegra_fb_register(struct nvhost_device *ndev,
info->var.vsync_len = 0;
info->var.vmode = FB_VMODE_NONINTERLACED;
- win->x = 0;
- win->y = 0;
- win->w = fb_data->xres;
- win->h = fb_data->yres;
+ win->x.full = dfixed_const(0);
+ win->y.full = dfixed_const(0);
+ win->w.full = dfixed_const(fb_data->xres);
+ win->h.full = dfixed_const(fb_data->yres);
/* TODO: set to output res dc */
win->out_x = 0;
win->out_y = 0;