diff options
author | David Sin <davidsin@ti.com> | 2011-04-07 08:41:07 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-04-07 08:41:07 +0100 |
commit | e1bc7de4a68ee9b3032a9fe7e969896b3498ebb6 (patch) | |
tree | ddff8fc57bb44bd59dec03fc295f71320f7b43fa /drivers/media/video/tiler | |
parent | 2f8fa219fae9191a459b38237292c66339c6952d (diff) |
TILER: Extend and move SiTA div points
Move division point in the container manager
to the right most corner, and extend division
points to allow for 'zero' and 'container_width'.
Signed-off-by: David Sin <davidsin@ti.com>
Diffstat (limited to 'drivers/media/video/tiler')
-rw-r--r-- | drivers/media/video/tiler/tcm/tcm_sita.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tiler/tiler.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/tiler/tcm/tcm_sita.c b/drivers/media/video/tiler/tcm/tcm_sita.c index 86513986fee..0aea8f12be2 100644 --- a/drivers/media/video/tiler/tcm/tcm_sita.c +++ b/drivers/media/video/tiler/tcm/tcm_sita.c @@ -242,7 +242,7 @@ struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr) } } - if (attr && attr->x < pvt->width && attr->y < pvt->height) { + if (attr && attr->x <= pvt->width && attr->y <= pvt->height) { pvt->div_pt.x = attr->x; pvt->div_pt.y = attr->y; diff --git a/drivers/media/video/tiler/tiler.c b/drivers/media/video/tiler/tiler.c index 9a4ee2a0396..8754d457fdd 100644 --- a/drivers/media/video/tiler/tiler.c +++ b/drivers/media/video/tiler/tiler.c @@ -1486,7 +1486,7 @@ static s32 __init tiler_init(void) struct tmm *tmm_pat = NULL; /* Allocate tiler container manager (we share 1 on OMAP4) */ - div_pt.x = (3 * TILER_WIDTH) / 4; /* hardcoded default */ + div_pt.x = TILER_WIDTH; /* hardcoded default */ div_pt.y = (3 * TILER_HEIGHT) / 4; sita = sita_init(TILER_WIDTH, TILER_HEIGHT, (void *)&div_pt); |