File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3093,7 +3093,7 @@ OMX_ERRORTYPE omx_vdec::get_parameter(OMX_IN OMX_HANDLETYPE hComp,
30933093 DEBUG_PRINT_HIGH (" ION:secure_mode: nUsage 0x%x" ,nativeBuffersUsage->nUsage );
30943094 } else {
30953095 DEBUG_PRINT_HIGH (" get_parameter: CACHED buffers from IOMMU heap" );
3096- nativeBuffersUsage->nUsage = (GRALLOC_USAGE_PRIVATE_IOMMU_HEAP);
3096+ nativeBuffersUsage->nUsage = (GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | GRALLOC_USAGE_PRIVATE_UNCACHED );
30973097#ifdef NO_IOMMU
30983098 nativeBuffersUsage->nUsage |= GRALLOC_USAGE_PRIVATE_MM_HEAP;
30993099#endif
@@ -5492,7 +5492,7 @@ OMX_ERRORTYPE omx_vdec::allocate_output_buffer(
54925492 drv_ctx.op_buf_ion_info [i].ion_device_fd = alloc_map_ion_memory (
54935493 drv_ctx.op_buf .buffer_size ,drv_ctx.op_buf .alignment ,
54945494 &drv_ctx.op_buf_ion_info [i].ion_alloc_data ,
5495- &drv_ctx.op_buf_ion_info [i].fd_ion_data , ION_FLAG_CACHED );
5495+ &drv_ctx.op_buf_ion_info [i].fd_ion_data , 0 );
54965496 if (drv_ctx.op_buf_ion_info [i].ion_device_fd < 0 ) {
54975497 return OMX_ErrorInsufficientResources;
54985498 }
You can’t perform that action at this time.
0 commit comments