Correct clEnqueueReadBuffer, clEnqueueWriteBuffer and clEnqueueMapBuffer
authorDag Lem <dag@nimrod.no>
Sat, 25 May 2013 09:34:26 +0000 (11:34 +0200)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Mon, 27 May 2013 08:27:57 +0000 (16:27 +0800)
commitf8e29756886b8c8f054aa43262580c7554fe1baf
treee25b52b5422ecfbf36efe9f122d1f6186a9707f1
parent8d1f4f3d00b558cd1355e2f2ba99c0e65bfd5118
Correct clEnqueueReadBuffer, clEnqueueWriteBuffer and clEnqueueMapBuffer

This implements handling of the offset parameter, and adds sanity
checks according to spec.

A bug is fixed in clEnqueueReadBuffer, where the buffer was not
unmapped after copying.

Signed-off-by: Dag Lem <dag@nimrod.no>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_api.c