Add pfn_notify support in clCreateContext.
authorYang Rong <rong.r.yang@intel.com>
Mon, 26 Aug 2013 07:44:55 +0000 (15:44 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 30 Aug 2013 08:06:55 +0000 (16:06 +0800)
commitd47f27ae3ef94671a716d2d4d3c34b77e3b45559
tree113ff96959e87a4fc27571745e35fa72ff0f2096
parentbe70382597290c4b903f6e273461f3fff9703c13
Add pfn_notify support in clCreateContext.

Remove assert in cl_create_context when pfn_notify is not NULL,
and save it, but don't used now.
Per spec, driver should call it when devices becomes unavailable.
Now driver doesn't check the device status.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_context.c
src/cl_context.h