HSW: Use the drm flag I915_EXEC_ENABLE_SLM to set L3 control config.
authorYang Rong <rong.r.yang@intel.com>
Mon, 19 May 2014 05:52:22 +0000 (13:52 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 19 May 2014 04:54:22 +0000 (12:54 +0800)
commit881b26d9f2f4084b60ea4ca316c2fe21c3ce4535
tree921a8a87d20504e1cb0ed8bff53cfcef9e8dbb2d
parentdb86e8749b149a233611f380386ba5bf904d2ee3
HSW: Use the drm flag I915_EXEC_ENABLE_SLM to set L3 control config.

Because LRI commands will be converted to NOOP, add the I915_EXEC_ENABLE_SLM
flag to the drm kernal driver, to enable SLM in the L3. Set the flag when
application use slm. Still keep the L3 config in the batch buffer for fulsim.
Also create and use the openCL own context when exec, to avoid affect the other context.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Junyan He <junyan.he@inbox.com>
src/intel/intel_batchbuffer.c
src/intel/intel_batchbuffer.h
src/intel/intel_driver.c
src/intel/intel_driver.h
src/intel/intel_gpgpu.c