GBE/Runtime: pass the device id to the compiler backend.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 17 Apr 2014 06:56:08 +0000 (14:56 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 17 Apr 2014 07:06:59 +0000 (15:06 +0800)
commitbfb82e4985717ff64e50e36f6d6174e4eefa60bc
treedbbb49058352b831ee54d1fed24baf09614c82c0
parentf0cbdb12b1d57389988ae157638a083a96eeb8b0
GBE/Runtime: pass the device id to the compiler backend.

For some reason, we need to know current target device id
at the code generation stage. This patch introduces such
a mechanism. This is the preparation for the baytrail werid
hang issue fixing.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
backend/src/backend/gen_context.cpp
backend/src/backend/gen_context.hpp
backend/src/backend/gen_encoder.cpp
backend/src/backend/gen_encoder.hpp
backend/src/backend/gen_program.cpp
backend/src/backend/gen_program.hpp
backend/src/backend/program.cpp
backend/src/backend/program.h
backend/src/gbe_bin_generater.cpp
src/cl_program.c