summaryrefslogtreecommitdiff
path: root/include/media/msm_vidc.h
diff options
context:
space:
mode:
authorVaibhav Deshu Venkatesh <vdeshuve@codeaurora.org>2016-12-05 14:40:44 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-20 23:40:48 -0800
commit6f732e040d70404fb4044310740e31b8870dbc3a (patch)
tree658ad026ff8510b1ff37bb075e09ff1fa8f8bf92 /include/media/msm_vidc.h
parent243d79cf40ca1d87621f84ab0ca13f96aa89dc0d (diff)
msm: vidc: Cache invalidate performance fix
When allocate buffer is used we allocate one huge buffer with offsets instead of allocating multiple small buffers. During cache invalidate we pass this big buffer and the size passed is the size of this big buffer. This causes performance issue. Instead we now pass the actual offsetted buffer and smaller individual buffer size for invalidation. CRs-Fixed: 1096624 Change-Id: Ifad386882e4a404b1e455cc3e11ae0e820d2a577 Signed-off-by: Vaibhav Deshu Venkatesh <vdeshuve@codeaurora.org> Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Diffstat (limited to 'include/media/msm_vidc.h')
-rw-r--r--include/media/msm_vidc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/msm_vidc.h b/include/media/msm_vidc.h
index 0a089c4faee1..003adc38eb14 100644
--- a/include/media/msm_vidc.h
+++ b/include/media/msm_vidc.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -68,6 +68,7 @@ struct msm_smem {
void *smem_priv;
enum hal_buffer buffer_type;
struct dma_mapping_info mapping_info;
+ unsigned int offset;
};
enum smem_cache_ops {