i965/fs: Record pull constant locations for all array elements.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 7 Mar 2014 23:45:13 +0000 (15:45 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Mar 2014 17:11:24 +0000 (10:11 -0700)
commit2163e0fd5a6bf2ac95aef331c30f010cb6e39cab
treeeb61053860d0639a1c0bbe78e05fe9403a19f5fd
parent7c7627781feca0c8738da66425d6c530ea598dc4
i965/fs: Record pull constant locations for all array elements.

When demoting a variably indexed uniform array to pull constants, we
only recorded the location for the base of the array (element 0).

Recording locations for all array elements is a trivial amount of code
and will make subsequent refactoring easier.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp