i965/fs: Implement texture projection support.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 1 Feb 2015 07:36:52 +0000 (23:36 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Mar 2015 23:17:19 +0000 (16:17 -0700)
commit649173b473ded2d7b1aded91cd4aab42eaeb5766
tree60dad8120d0b0e6a8684880bcdc18224c9192761
parent0a9bcf9e39409ea5acfdfbcf0c388e41e0f9ea45
i965/fs: Implement texture projection support.

Our fragment program backend implements support for TXP directly, and
there's no NIR lowering pass to remove the projection.  When we switch
fragment program support over to NIR, we need to support it somehow.

It's easy enough to support directly.

v2: Split out offset/tex_offset rename (requested by Jordan).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp