runtime: set correct state for constant buffer on hsw.
authorRuiling Song <ruiling.song@intel.com>
Tue, 29 Jul 2014 07:41:38 +0000 (15:41 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 30 Jul 2014 01:05:54 +0000 (09:05 +0800)
commit778f56447172c737eceb8aaccca3d2801f242152
treedd46bfaaa766839810ea3a3ae837b9d12f708909
parent730fa100586f6902a4129322c2d5a0f782472917
runtime: set correct state for constant buffer on hsw.

According to spec, should set I965_SURCHAN_SELECT_XXX on hsw.
Then we can use sampler message to read constant surface.

This fix the regression in unit test brought by:
'GBE: Optimize constant load with sampler.'

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/intel/intel_gpgpu.c