i965: Move brw_setup_tex_for_precompile to brw_program.[ch].
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Aug 2015 01:27:20 +0000 (18:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Sep 2015 05:31:03 +0000 (22:31 -0700)
commita2151560b8d65be31129c00872ea8d70c564b110
tree728d5b657d26891feaf56579eb3e9cf9c0e8e041
parent04e201d0c02cd30ace5c6fe80e9f021ebb733682
i965: Move brw_setup_tex_for_precompile to brw_program.[ch].

This living in brw_fs.{h,cpp} is a historical artifact of us supporting
texturing for fragment shaders before any other stages.  It's kind of
awkward given that we use it for all stages.

This avoids having to include brw_fs.h in geometry shader code in order
to access this function.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_program.h