i965/fs: Move message header and texture offset setup to generate_tex().
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 5 Aug 2012 03:33:13 +0000 (20:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Aug 2012 18:16:00 +0000 (11:16 -0700)
commit82bfb4b41af7d61aa45e41d62c1842b6a09e9585
tree9e0351ae8414f788bfe05d28741ea3d25c938b8f
parent2df399c34bb39122a45bdd5b430b48346542e1cb
i965/fs: Move message header and texture offset setup to generate_tex().

Setting the texture offset bits in the message header involves very
specific hardware register descriptions.  As such, I feel it's better
suited for the lower level "generate" layer that has direct access to
the weird register layouts, rather than at the fs_inst abstraction layer.

This also parallels the approach I took in the VS backend.

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