diff options
author | Lajos Molnar <molnar@ti.com> | 2011-04-07 08:41:02 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-04-07 08:41:02 +0100 |
commit | 98b7248f1c210609aad652dbd60f64dcd143486f (patch) | |
tree | 759172f6f15cce4b8e163f4cb5cf13d06b639039 /drivers/media/video/tiler | |
parent | 7817193882e5d306e9aac15a79833023a270fc7d (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>
Diffstat (limited to 'drivers/media/video/tiler')
-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, n_alloc = MIN(*count - i, m_per_a * n_per_m); m_alloc = DIVIDE_UP(n_alloc, n_per_m); tiles = ((m_alloc - 1) * map_width + - buf_width * (n_alloc - (m_alloc - 1) * m_per_a)); + buf_width * (n_alloc - (m_alloc - 1) * n_per_m)); res = tiler_alloc(fmt, til_width * tiles, height, (u32 *)sysptr + i); |