HSW: Fix potential issue of GT3 when calc stack address.
authorYang Rong <rong.r.yang@intel.com>
Thu, 12 Jun 2014 11:42:12 +0000 (19:42 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 12 Jun 2014 05:56:31 +0000 (13:56 +0800)
commit94d8536f043ea93a1c0750877a4cb346ed2b1607
treebe96fabf5a4367da8e3dd4d4fb997cfc3ae5a185
parent9e88dec0a78a26432bcf6545f107131219c18699
HSW: Fix potential issue of GT3 when calc stack address.

GT3 have 4 half slice, so should shift left 2 bits, and also should enlarge the stack buffer size,
otherwize, if thread generate is non-balance, may out of bound.
Per bspec, scratch size need set 2X of desired.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/gen75_context.cpp
src/cl_command_queue_gen7.c
src/intel/intel_gpgpu.c