summaryrefslogtreecommitdiff
path: root/gralloc4/src/allocator
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2021-02-26 15:45:46 -0800
committerHridya Valsaraju <hridya@google.com>2021-02-26 16:43:56 -0800
commit789064a74a6fa0820756929a60f0beaf23bb5ba6 (patch)
treec4350fe34d8ce946d39329051bf3b843fff03e8b /gralloc4/src/allocator
parent411cd9f4d859fd4ace1360ddff84407993f03d54 (diff)
downloadgchips-789064a74a6fa0820756929a60f0beaf23bb5ba6.tar.gz
gralloc4: Enable use of vstream-secure/vframe-secure DMA-BUF heaps.
Bug: 178865267 Test: build Change-Id: Icca8296db7155fc87e0d3d41221f6837fef3eda9
Diffstat (limited to 'gralloc4/src/allocator')
-rw-r--r--gralloc4/src/allocator/mali_gralloc_ion.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gralloc4/src/allocator/mali_gralloc_ion.cpp b/gralloc4/src/allocator/mali_gralloc_ion.cpp
index b26f53b..94ce282 100644
--- a/gralloc4/src/allocator/mali_gralloc_ion.cpp
+++ b/gralloc4/src/allocator/mali_gralloc_ion.cpp
@@ -63,6 +63,8 @@ static const char kDmabufFaceauthImgHeapName[] = "faimg-secure";
static const char kDmabufFaceauthRawImgHeapName[] = "farawimg-secure";
static const char kDmabufFaceauthPrevHeapName[] = "faprev-secure";
static const char kDmabufFaceauthModelHeapName[] = "famodel-secure";
+static const char kDmabufVframeSecureHeapName[] = "vframe-secure";
+static const char kDmabufVstreamSecureHeapName[] = "vstream-secure";
struct ion_device
{
@@ -285,6 +287,10 @@ static std::string select_dmabuf_heap(unsigned int heap_mask)
return kDmabufFaceauthPrevHeapName;
case EXYNOS_ION_HEAP_FA_MODEL_MASK:
return kDmabufFaceauthModelHeapName;
+ case EXYNOS_ION_HEAP_VIDEO_FRAME_MASK:
+ return kDmabufVframeSecureHeapName;
+ case EXYNOS_ION_HEAP_VIDEO_STREAM_MASK:
+ return kDmabufVstreamSecureHeapName;
default:
return {};
}