cl/runtime: fixup 1D array image region and origins.
authorZhigang Gong <zhigang.gong@intel.com>
Wed, 18 Jun 2014 06:53:06 +0000 (14:53 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 20 Jun 2014 07:53:25 +0000 (15:53 +0800)
commit5745447ce9b56504aeb95e2bf03b93c4d3a9d5dc
treec0caabaa376551be18d79aeac87cd17396dd2e70
parent74252fdc7b3e211bcbe22e4411f313e978f25def
cl/runtime: fixup 1D array image region and origins.

As we treat 1D array image as a 2d array image with height 1
internally, we need to fixup region and origins passed in
from external APIs.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
src/cl_api.c
src/cl_utils.h