summaryrefslogtreecommitdiff
path: root/drivers/media/video/tiler
diff options
context:
space:
mode:
authorLajos Molnar <molnar@ti.com>2011-04-07 08:41:05 +0100
committerAndy Green <andy.green@linaro.org>2011-04-07 08:41:05 +0100
commit7d543d600eb08a167078490bbb83fc1e1c518db5 (patch)
treeada4a04cef42f372e0f723165f063c785537ebbc /drivers/media/video/tiler
parent0d5a08e44099e73002a6010280d35a387781b7d2 (diff)
TILER: Fix rotated tiler address calculation.
This resolves incorrect colors on NV12 images, as well as incorrectly rotated images, which may result in DSS OCP_ERR. Signed-off-by: Lajos Molnar <molnar@ti.com>
Diffstat (limited to 'drivers/media/video/tiler')
-rw-r--r--drivers/media/video/tiler/tiler_rot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tiler/tiler_rot.c b/drivers/media/video/tiler/tiler_rot.c
index ff7f219f95c..aa38d72187d 100644
--- a/drivers/media/video/tiler/tiler_rot.c
+++ b/drivers/media/video/tiler/tiler_rot.c
@@ -155,7 +155,7 @@ u32 tiler_get_address(struct tiler_view_orient orient,
return (u32)
TIL_ADDR((tmp << alignment), (orient.rotate_90 ? 1 : 0),
(orient.y_invert ? 1 : 0), (orient.x_invert ? 1 : 0),
- fmt);
+ (fmt - 1));
}
u32 tiler_reorient_addr(u32 tsptr, struct tiler_view_orient orient)