Fix an event status bug.
authorYang Rong <rong.r.yang@intel.com>
Thu, 19 Jun 2014 14:37:42 +0000 (22:37 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 19 Jun 2014 08:26:18 +0000 (16:26 +0800)
commit9efc0c7c4ae4d74995d21e4c81b359d628256034
tree556da2aa61673cd7c3d48a74a898c5e23a955282
parent78fc685c58e472bb4114184e9e7f3fa239cc768a
Fix an event status bug.

If event status is an Error code, the status of events wait on this event also should set to Error code.

V2: should not execute the enqueue command wait on the event whose status is error.
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_driver.h
src/cl_driver_defs.c
src/cl_event.c
src/intel/intel_gpgpu.c