![Zhigang Gong](/assets/img/avatar_default.png)
According to opencl 1.2 spec 5.4.2: enqueues a command to unmap a previously mapped region of a memory object. ... CL_INVALID_VALUE if mapped_ptr is not a valid pointer returned by clEnqueueMapBuffer, or clEnqueueMapImage for memobj. So if the u->data is not from a clEnqueueMapBuffer call, we should not call clEnqueueUnmapMemObject() unmap it. With this patch, the cases ./opencv_test_video --gtest_filter=OCL_Video/FarnebackOpticalFlow.Mat/* could work well with beignet 0.9.1, Otherwise, it will get a CL_INVALID_VALUE at the clEnqueueUnmapMemObject(). Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: http://opencv.org
- Docs: http://docs.opencv.org
- Q&A forum: http://answers.opencv.org
- Issue tracking: http://code.opencv.org
Contributing
Please read before starting work on a pull request: http://code.opencv.org/projects/opencv/wiki/How_to_contribute
Summary of guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.
Description
Languages
C++
83.4%
Cuda
5.9%
C
3.8%
Java
2.4%
CMake
2.2%
Other
2.1%