1. 23 Jul, 2014 5 commits
  2. 22 Jul, 2014 1 commit
  3. 21 Jul, 2014 3 commits
  4. 20 Jul, 2014 3 commits
  5. 19 Jul, 2014 1 commit
  6. 18 Jul, 2014 3 commits
  7. 16 Jul, 2014 2 commits
  8. 15 Jul, 2014 4 commits
  9. 14 Jul, 2014 6 commits
  10. 12 Jul, 2014 1 commit
  11. 11 Jul, 2014 5 commits
  12. 10 Jul, 2014 5 commits
  13. 09 Jul, 2014 1 commit
    • Zhigang Gong's avatar
      Avoid unmap an umat(ocl) which hasn't been mapped at all. · 2e49ca49
      Zhigang Gong authored
      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: 's avatarZhigang Gong <zhigang.gong@intel.com>
      2e49ca49