i965: Use program->SamplerUnits[] to get the appropriate texture unit.
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 5 Aug 2008 02:18:56 +0000 (10:18 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 5 Aug 2008 02:18:56 +0000 (10:18 +0800)
commita3024caff1c790cf9f24476926aa62198f1e7b53
tree3d03ae29e6611f3c71d937e20a525639d6be4316
parent62fb5f7b9ab70017d5de6ab3d0886bc4cbdbc57f
i965: Use program->SamplerUnits[] to get the appropriate texture unit.

inst->TexSrcUnit is used as an index into program->SamplerUnits[] since
the commit ade508312c701ce89d3c2cd717994dbbabb4f207, and program->SamplerUnits
is a sampler-to-texture-unit mapping.
src/mesa/drivers/dri/i965/brw_wm_fp.c
src/mesa/drivers/dri/i965/brw_wm_glsl.c