Fix a size assert when setup bti.
authorYang Rong <rong.r.yang@intel.com>
Mon, 20 Oct 2014 07:46:17 +0000 (15:46 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 28 Oct 2014 04:22:54 +0000 (12:22 +0800)
commite46764fa534f29be428c122d2e74b1f34ff15e81
treef7648d4cfd0c9d45a6cb68b2ebdf1921a322613e
parentc454dbdbf6d45cc214dc23c2eeaa38d2530d9f8e
Fix a size assert when setup bti.

Global constant buffer size is not align to 4 byte, will cause assert in BDW when set bti.
Per spec, the low two bits of surface state's width must be 11 if SURFACE_BUFFER's format is RAW.
Align the global constant buffer size to 4.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Tested-by: "Meng, Mengmeng" <mengmeng.meng@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_command_queue_gen7.c
src/intel/intel_gpgpu.c