nir/lower_tex: Use tex_instr_dest_size for txs destinations
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Mar 2017 03:27:57 +0000 (19:27 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Mar 2017 14:36:20 +0000 (07:36 -0700)
commit0bf0365393497d2d29fd24b4c42f17d5ad9bd4e2
tree955411912c06431b0a672ad2d351d5cb2611aef0
parentfffa4111dfe6eb10fb478967ca0798331dfd525f
nir/lower_tex: Use tex_instr_dest_size for txs destinations

Using coord_components of the source texture is correct for everything
except cube maps where it's off by one.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_lower_tex.c