diff options
author | Praveen Chavan <pchavan@codeaurora.org> | 2015-02-04 14:49:34 -0800 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-02-05 05:21:04 +0000 |
commit | 8dac2f1932988a8a2ac17b2dce59110d589a5e62 (patch) | |
tree | e98370f47284089e8b9d3aeba2da721796fcaf25 /mm-video-legacy | |
parent | bea5ee2c97a20e5edd2540a277427d27de29a778 (diff) | |
download | android_hardware_qcom_media-8dac2f1932988a8a2ac17b2dce59110d589a5e62.tar.gz android_hardware_qcom_media-8dac2f1932988a8a2ac17b2dce59110d589a5e62.tar.bz2 android_hardware_qcom_media-8dac2f1932988a8a2ac17b2dce59110d589a5e62.zip |
mm-video-legacy: vdec: allocate color-conversion buffers as uncached
Fix coherency issues seen by CPU readers.
Bug: 17906609
Change-Id: I8f08d4649ae4b1c4b094771426372e6800f31fb9
Diffstat (limited to 'mm-video-legacy')
-rw-r--r-- | mm-video-legacy/vidc/vdec/src/omx_vdec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp b/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp index 06d333d0..f425a351 100644 --- a/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp +++ b/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp @@ -5087,7 +5087,7 @@ OMX_ERRORTYPE omx_vdec::allocate_output_buffer( drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( drv_ctx.op_buf.buffer_size,drv_ctx.op_buf.alignment, &drv_ctx.op_buf_ion_info[i].ion_alloc_data, - &drv_ctx.op_buf_ion_info[i].fd_ion_data, ION_FLAG_CACHED); + &drv_ctx.op_buf_ion_info[i].fd_ion_data, 0); if (drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { return OMX_ErrorInsufficientResources; } @@ -9329,7 +9329,7 @@ OMX_ERRORTYPE omx_vdec::allocate_color_convert_buf::allocate_buffers_color_conve op_buf_ion_info[i].ion_device_fd = omx->alloc_map_ion_memory( buffer_size_req,buffer_alignment_req, &op_buf_ion_info[i].ion_alloc_data,&op_buf_ion_info[i].fd_ion_data, - ION_FLAG_CACHED); + 0); pmem_fd[i] = op_buf_ion_info[i].fd_ion_data.fd; if (op_buf_ion_info[i].ion_device_fd < 0) { |