summaryrefslogtreecommitdiff
path: root/src/cl_sampler.h
Commit message (Collapse)AuthorAgeFilesLines
* Refine clCreateSampler API.Junyan He2016-12-161-18/+10
| | | | | | | Also add some parameters check to this API. Signed-off-by: Junyan He <junyan.he@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Add ref check for CL object's validation.Junyan He2016-09-281-1/+3
| | | | | | | | The CL object with ref == 0 should be considered as a invalid object. Signed-off-by: Junyan He <junyan.he@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Delete all the verbose locks and use list to store CL objects.Junyan He2016-09-231-1/+0
| | | | | | | | | | We use context's lock when we add and delete cl objects. Every cl object should use it's own lock to protect itself. We also add some helper functions to ease the adding and removing operations. Signed-off-by: Junyan He <junyan.he@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Runtime: Apply base object ot cl_sampler.Junyan He2016-09-021-3/+5
| | | | | Signed-off-by: Junyan He <junyan.he@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* License: adjust all license version to LGPL v2.1+.Zhigang Gong2014-11-111-1/+1
| | | | | | | | To make the license statement consistent to each other, adjust all license versions to v2.1+. Thus beignet should have a pure LGPL v2.1+ license. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
* GBE: concentrate all samplers' allocation at compile time.Zhigang Gong2013-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This is the first step to do image/sampler allocation fully at compile time. Thus we can determine all the sampler id and image bti index at compile time. So it can make the following things easier or faster: 1. After we finish both image/sampler, we can treat all image bti and sampler as constant and can get their value when we encode the Sampler and TypedWrite instructions. Then we don't need to compute the message header at runtime which cost 3 instructions each call. 2. get image width/height/depth. As we know the surface bti at compile time, we can put those data at specified curbe entry and generate correct indirect register access to get those information at compile time. This is the first step. And just finish the sampler part. Now all the samplers including those defeined in kernel arguments will be allocated at compile time. At runtime, it just need to fill in the sampler value into the proper slot which map to the specified input argument. Then the driver will create and bind the sampler to the correct slot. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Lv, Meng <meng.lv@intel.com>
* CL: Support kernel side defined samplers.Zhigang Gong2013-05-151-0/+5
| | | | | | | | | We changed the way to handle samplers. We gather all the kernel side defined samplers and those sampler in kernel argument into one samplers array. And don't allocate one single sampler each time. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Lv, Meng <meng.lv@intel.com>
* Implement KHR ICD extensionSimon Richter2013-04-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This adds a pointer to the dispatch table at the beginning of every object of type - cl_command_queue - cl_context - cl_device_id - cl_event - cl_kernel - cl_mem - cl_platform_id - cl_program - cl_sampler as required by the ICD specification. The layout of the dispatch table comes from the OpenCL ICD loader by Brice Videau <brice.videau@imag.fr> and Vincent Danjean <Vincent.Danjean@ens-lyon.org>. To avoid dispatch table entries being overwritten with the ICD loader's implementations of the CL functions (as would be the proper behaviour for the ELF loader), the -Bsymbolic option is given to the linker. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* Removed some useless code in cl_utils.h Started to implement support for ↵bsegovia2012-08-101-0/+24
| | | | samplers
* Added all miniCL filesbsegovia2012-08-101-0/+27