diff options
author | Junyan He <junyan.he@intel.com> | 2016-07-19 19:25:54 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-09-02 17:35:03 +0800 |
commit | a3867177fde9e7e5bd01fe0f94914e8cb37783cd (patch) | |
tree | ad0f7699b94283613918606937811bba87900d66 /src/cl_api.c | |
parent | ce4439635c2eb365124f1c772842fe068bac3847 (diff) | |
download | beignet-a3867177fde9e7e5bd01fe0f94914e8cb37783cd.tar.gz |
Runtime: Apply base object to cl_context
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_api.c b/src/cl_api.c index d1dfff63..5732591d 100644 --- a/src/cl_api.c +++ b/src/cl_api.c @@ -395,7 +395,7 @@ clGetContextInfo(cl_context context, cl_uint n = 1; FILL_GETINFO_RET (cl_uint, 1, &n, CL_SUCCESS); } else if (param_name == CL_CONTEXT_REFERENCE_COUNT) { - cl_uint ref = context->ref_n; + cl_uint ref = CL_OBJECT_GET_REF(context); FILL_GETINFO_RET (cl_uint, 1, &ref, CL_SUCCESS); } else if (param_name == CL_CONTEXT_PROPERTIES) { if(context->prop_len > 0) { |