Implement sampler support.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Sun, 6 Jan 2013 05:16:49 +0000 (13:16 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 06:51:31 +0000 (14:51 +0800)
commit0a5e96e997ee799bd219837604e7bd64a3d76b05
treeb5b0c3e56c6de78652b4aa40d896a2919ef62b8e
parenta7993a0d6e142d404b8828cfaa9282eaab795dba
Implement sampler support.

Accept sampler kernel argument and pass the sampler to driver side.
At driver side, gen7 driver will allocate a sampler slot and initlaize
one sampler state according to the cl sampler state. and then pass
back the slot index to the curbe array.

After this commit, read_imagei(image, sampler, coord) could work as
expected.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
src/cl_command_queue.c
src/cl_driver.h
src/cl_driver_defs.c
src/cl_kernel.c
src/cl_kernel.h
src/intel/intel_defines.h
src/intel/intel_gpgpu.c