diff options
author | Lajos Molnar <molnar@ti.com> | 2010-04-30 14:33:31 -0400 |
---|---|---|
committer | Paolo Pisati <paolo.pisati@canonical.com> | 2012-08-17 04:18:54 -0400 |
commit | 441b067a3d7f2236eb035bc7dd0b2cc5433e4ca3 (patch) | |
tree | 6eee04f0ab997c7e98e0b3c6f83400738ddce06c | |
parent | c9314c8d5f6853e4d761b5de7fede9e315bc4935 (diff) |
TILER: Fixed issue with tiler_alloc_packed for 16/32-bit buffers.
Fixed size calculation for the allocated buffer into which the
packing takes place.
Tested using V4L2 unit tests and debug prints as only V4L2 uses this
function.
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: David Sin <davidsin@ti.com>
-rw-r--r-- | drivers/media/video/tiler/tiler_pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tiler/tiler_pack.c b/drivers/media/video/tiler/tiler_pack.c index 3de786bfeda..e21846909bc 100644 --- a/drivers/media/video/tiler/tiler_pack.c +++ b/drivers/media/video/tiler/tiler_pack.c | |||
@@ -66,7 +66,7 @@ void tiler_alloc_packed(s32 *count, enum tiler_fmt fmt, u32 width, u32 height, | |||
66 | n_alloc = MIN(*count - i, m_per_a * n_per_m); | 66 | n_alloc = MIN(*count - i, m_per_a * n_per_m); |
67 | m_alloc = DIVIDE_UP(n_alloc, n_per_m); | 67 | m_alloc = DIVIDE_UP(n_alloc, n_per_m); |
68 | tiles = ((m_alloc - 1) * map_width + | 68 | tiles = ((m_alloc - 1) * map_width + |
69 | buf_width * (n_alloc - (m_alloc - 1) * m_per_a)); | 69 | buf_width * (n_alloc - (m_alloc - 1) * n_per_m)); |
70 | 70 | ||
71 | res = tiler_alloc(fmt, til_width * tiles, height, | 71 | res = tiler_alloc(fmt, til_width * tiles, height, |
72 | (u32 *)sysptr + i); | 72 | (u32 *)sysptr + i); |