commit | b62e36d18fac4a9c9977ddfa4bc2c2dbbcdad1b4 | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason.ekstrand@intel.com> | Thu Oct 01 16:38:59 2015 -0700 |
committer | Jason Ekstrand <jason.ekstrand@intel.com> | Fri Oct 02 14:22:53 2015 -0700 |
tree | 2334c2779395ca08ae7b6bd348d5a1e016ea15a7 | |
parent | 7b974c5f902b3f652776471aa35306195247a8a7 [diff] |
i965/fs: Move sampler unit lookup into rescale_texcoord The texunit variable we create and assign in nir_emit_texture gets passed through two more layers of function calls before it gets to its sole use in rescale_texcoord. The best part is that we already pass the sampler into rescale_texcoord so we can just look it up there. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>