nir/spirv: Restrict the number of channels in texture coordinates
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Mar 2017 03:03:01 +0000 (19:03 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Mar 2017 14:36:20 +0000 (07:36 -0700)
commitfffa4111dfe6eb10fb478967ca0798331dfd525f
tree8a06846d409f910fe4c535693fd2e0fce64ed820
parent3c312be7b3e95ec7540e98abed1b6f3cc8d31b2a
nir/spirv: Restrict the number of channels in texture coordinates

Some SPIR-V texturing instructions pack more than the texture coordinate
into the coordinate source.  We need to mask off the unused channels.

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