BDW: Refine intel_gpgpu_setup_bti and add intel_gpgpu_set_base_address for BDW.
authorYang Rong <rong.r.yang@intel.com>
Mon, 29 Sep 2014 05:38:11 +0000 (13:38 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 10 Oct 2014 08:24:49 +0000 (16:24 +0800)
commit889bf161f90426a19fc403e78e0d74643bacd355
treecb79ae18edbda17bb3127b5be81873388e7e6468
parent30da01fff1202a0ef222734e0d5f03427c49e986
BDW: Refine intel_gpgpu_setup_bti and add intel_gpgpu_set_base_address for BDW.

Because the sizeof struct surface state change in BDW, remove gen6_surface_state, and
use gen_surface_state as the unoin of gen7_surface_state and gen8_surface_state.
Use gen_surface_state in surface_heap_t.
Reloc the Dynamic State Base and Instruction Address in intel_gpgpu_set_base_address_gen8.
BDW use 48 bits GPU address, so when reloc address, remember that kernel will reloc 64 bits in
command batch, so make sure there are 64 bits address, the high 64bits follow by low 32bits in command batch.

v2:
remove binary .swp file.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Junyan He <junyan.he@linux.intel.com>
src/intel/intel_defines.h
src/intel/intel_gpgpu.c
src/intel/intel_structs.h