#include "gr.h"
#define ION_HEAP_EXYNOS_CONTIG_MASK (1 << 4)
-#define ION_EXYNOS_VIDEO_MASK (1 << 29)
+#define ION_EXYNOS_FIMD_VIDEO_MASK (1 << 28)
+#define ION_EXYNOS_MFC_OUTPUT_MASK (1 << 26)
+#define ION_EXYNOS_MFC_INPUT_MASK (1 << 25)
+
/*****************************************************************************/
*stride = bpr / bpp;
size = ALIGN(size, PAGE_SIZE);
+ if (usage & GRALLOC_USAGE_PROTECTED)
+ ion_flags |= ION_EXYNOS_FIMD_VIDEO_MASK;
+
err = ion_alloc_fd(ionfd, size, 0, heap_mask, ion_flags,
&fd);
*hnd = new private_handle_t(fd, size, usage, w, h, format, *stride,
return -EINVAL;
}
+ if (usage & GRALLOC_USAGE_PROTECTED)
+ ion_flags |= ION_EXYNOS_MFC_OUTPUT_MASK;
+
err = ion_alloc_fd(ionfd, luma_size, 0, heap_mask, ion_flags, &fd);
if (err)
return err;
if( (usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_OFTEN )
ion_flags = ION_FLAG_CACHED;
- if (usage & GRALLOC_USAGE_PROTECTED)
- ion_flags |= ION_EXYNOS_VIDEO_MASK;
private_module_t* m = reinterpret_cast<private_module_t*>
(dev->common.module);
#define ION_HEAP_SYSTEM_CONTIG_MASK (1 << 1)
#define ION_HEAP_EXYNOS_CONTIG_MASK (1 << 4)
#define ION_HEAP_EXYNOS_MASK (1 << 5)
-#define ION_EXYNOS_VIDEO_MASK (1 << 29)
+#define ION_EXYNOS_FIMD_VIDEO_MASK (1 << 28)
+#define ION_EXYNOS_GSC_MASK (1 << 27)
+#define ION_EXYNOS_MFC_OUTPUT_MASK (1 << 26)
+#define ION_EXYNOS_MFC_INPUT_MASK (1 << 25)
+
/* ION_MSYNC_FLAGS
* values of @flags parameter to ion_msync()