i965: Index sampler program key data by linker-assigned index.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 26 Aug 2012 07:28:38 +0000 (00:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 27 Aug 2012 21:23:40 +0000 (14:23 -0700)
commitf3d0daf7ea7e42ff9ce11e8bd6fba1059a2406e8
treecc19a403aba9cb10e0bf6a54ece16776b6747343
parentab17762c70852ca8fc400d7b5c6696d412ff2afe
i965: Index sampler program key data by linker-assigned index.

Now that most things are based on the linker-assigned index, it makes
sense to convert the arrays in the VS/WM program key as well.  It seems
silly to leave them indexed by texture unit.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_program.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_wm.c