runtime/driver: refine error handlings.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 10 Jul 2014 08:52:48 +0000 (16:52 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 11 Jul 2014 10:25:19 +0000 (18:25 +0800)
commitcb8285a8be3dcb4aca7e896f2c45715f30f8aee6
tree26874bf857d8a9d31e65cc5366744e036ec2b3e0
parent992fde8e4391dccae25c68226175b08c41386d51
runtime/driver: refine error handlings.

We should always check whether a dri_bo_map success or fail.

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