nir: allow texture offsets with cube maps
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 19 Nov 2017 17:27:12 +0000 (12:27 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 25 Nov 2017 21:56:30 +0000 (16:56 -0500)
commitab336e8b46b6d7016519681c59b9aedf3fea04ad
tree57b6011a3af1f50045f42c6af6c4d232ad85da24
parentc690a7a8cdfb6425547bbb782020098405851194
nir: allow texture offsets with cube maps

GL doesn't have this, but some hardware supports it. This is convenient
for lowering tg4 to plain texture calls, which is necessary on Adreno
A4xx hardware.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir.h