i965/fs: Factor out texcoord setup into a helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 5 Aug 2012 03:40:42 +0000 (20:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Aug 2012 18:16:09 +0000 (11:16 -0700)
commit27bf9c1997b77f85c2099436e9ad5dfc0f1608c7
tree059b13c479ad4f97178624ee6764bb953cdd2a73
parent82bfb4b41af7d61aa45e41d62c1842b6a09e9585
i965/fs: Factor out texcoord setup into a helper function.

With the textureRect support and GL_CLAMP workarounds, it's grown
sufficiently that it deserves its own function.  Separating it out
makes the original function much more readable.

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_visitor.cpp