diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-20 19:09:35 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-23 10:33:42 +0800 |
commit | 369518b08e58668d8d2b8047dfcca9c4d16d26a6 (patch) | |
tree | 0a272240013949559fbdecb982e1c659690b8d98 /src | |
parent | 019b690a35907a196f2943699291b35a6b8ea6ab (diff) |
GBE: fix some get kernel arg info bugs.
Still can't handle the sampler_t which is not used actually.
Access qualifier seems broken with llvm 3.3.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cl_kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_kernel.c b/src/cl_kernel.c index 64ffd5f4..5d0b36e1 100644 --- a/src/cl_kernel.c +++ b/src/cl_kernel.c @@ -227,7 +227,7 @@ cl_get_kernel_arg_info(cl_kernel k, cl_uint arg_index, cl_kernel_arg_info param_ if (!param_value) return CL_SUCCESS; if ((ulong)ret_info == 0) { *(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_PRIVATE; - } else if ((ulong)ret_info == 1) { + } else if ((ulong)ret_info == 1 || (ulong)ret_info == 4) { *(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_GLOBAL; } else if ((ulong)ret_info == 2) { *(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_CONSTANT; |