i965/fs: Factor out texture offset bitfield computation.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Oct 2011 20:51:28 +0000 (13:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Dec 2011 00:33:10 +0000 (16:33 -0800)
commit475d70d6ef5feb94efab3923e5607e625f2aee67
tree1d97480557d4a4ab6ba95ac855f0b6084d9c8d62
parentd93aa54d2dea79d8216e10b6bbbb00b0c8443dc2
i965/fs: Factor out texture offset bitfield computation.

We'll want to reuse this for the VS, and it's complex enough that I'd
rather not cut and paste it.

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