nir: Add texture sources and intrinsics for bindless
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 28 Oct 2018 12:52:44 +0000 (07:52 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 25 Mar 2019 21:12:09 +0000 (16:12 -0500)
commit40074ebf743326a1b8ca3be36512db0978de6aac
treec2698ff8053f1a9f248a55b45ea28e73fffd76bb
parente0db0c74b96b8a843e9260749ebbbcbacbabd139
nir: Add texture sources and intrinsics for bindless

On Intel, we have both bindless and bindful and we'd like to use them at
the same time if we can so we need to be able to distinguish at the NIR
level between the two.  This also fixes nir_lower_tex to properly handle
bindless in its tex_texture_size and get_texture_lod helpers.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_tex.c
src/compiler/nir/nir_print.c