diff options
author | Junyan He <junyan.he@intel.com> | 2016-10-09 17:15:37 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-12-15 18:30:38 +0800 |
commit | 23bfe12767f6ebe2685b8dfce4b67fd325e7b738 (patch) | |
tree | db3d3c8417666678a7b942e5164c57f77643372f /src/cl_api.c | |
parent | fdcae7af2be2d2b7a84d4dd022383ab7dad280e6 (diff) |
Modify clGetSamplerInfo using cl_get_info_helper.
Signed-off-by: Junyan He <junyan.he@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_api.c')
-rw-r--r-- | src/cl_api.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/cl_api.c b/src/cl_api.c index 605c853e..83315a75 100644 --- a/src/cl_api.c +++ b/src/cl_api.c @@ -1106,35 +1106,6 @@ error: return err; } -cl_int -clGetSamplerInfo(cl_sampler sampler, - cl_sampler_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - cl_int err = CL_SUCCESS; - CHECK_SAMPLER (sampler); - - if (param_name == CL_SAMPLER_REFERENCE_COUNT) { - cl_uint ref = CL_OBJECT_GET_REF(sampler); - FILL_GETINFO_RET (cl_uint, 1, &ref, CL_SUCCESS); - } else if (param_name == CL_SAMPLER_CONTEXT) { - FILL_GETINFO_RET (cl_context, 1, &sampler->ctx, CL_SUCCESS); - } else if (param_name == CL_SAMPLER_NORMALIZED_COORDS) { - FILL_GETINFO_RET (cl_bool, 1, &sampler->normalized_coords, CL_SUCCESS); - } else if (param_name == CL_SAMPLER_ADDRESSING_MODE) { - FILL_GETINFO_RET (cl_addressing_mode, 1, &sampler->address, CL_SUCCESS); - } else if (param_name == CL_SAMPLER_FILTER_MODE ) { - FILL_GETINFO_RET (cl_filter_mode, 1, &sampler->filter, CL_SUCCESS); - } else{ - return CL_INVALID_VALUE; - } - -error: - return err; -} - cl_program clCreateProgramWithSource(cl_context context, cl_uint count, |