spirv/nir: Fix some texture opcode asserts
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Jul 2016 02:23:17 +0000 (19:23 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jul 2016 23:27:35 +0000 (16:27 -0700)
commit2ddefd03b748024735c106b97b9acbdab6c93766
tree191e5829e0bb1d49d61b28aa2f40a5bf1ec997e1
parent3f5cf8c488bfc401d1d5503c1ec61874d7c1477d
spirv/nir: Fix some texture opcode asserts

We can't get an lod with txf_ms and SPIR-V considers textureGrad to be an
explicit-LOD texturing instruction.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-dev@lists.freedesktop.org>
src/compiler/spirv/spirv_to_nir.c