nir/lower_tex: Add support for lowering coordinate offsets
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Jul 2016 03:32:31 +0000 (20:32 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jul 2016 23:48:53 +0000 (16:48 -0700)
commitd9156efc5292b4ac7cea9d12e68882fc7b5da5fd
tree63e329f50e45f3b3ade53eb690851cb05db5ea42
parent843fc8f3e782379899976f6f6f6dcdeb58153fa1
nir/lower_tex: Add support for lowering coordinate offsets

On i965, we can't support coordinate offsets for texelFetch or rectangle
textures.  Previously, we were doing this with a GLSL pass but we need to
do it in NIR if we want those workarounds for SPIR-V.

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/nir/nir.h
src/compiler/nir/nir_lower_tex.c