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>
This commit is contained in:

committed by
Jason Ekstrand

parent
e0db0c74b9
commit
40074ebf74
@@ -1434,6 +1434,8 @@ typedef enum {
|
||||
nir_tex_src_sampler_deref, /* < deref pointing to the sampler */
|
||||
nir_tex_src_texture_offset, /* < dynamically uniform indirect offset */
|
||||
nir_tex_src_sampler_offset, /* < dynamically uniform indirect offset */
|
||||
nir_tex_src_texture_handle, /* < bindless texture handle */
|
||||
nir_tex_src_sampler_handle, /* < bindless sampler handle */
|
||||
nir_tex_src_plane, /* < selects plane for planar textures */
|
||||
nir_num_tex_src_types
|
||||
} nir_tex_src_type;
|
||||
|
Reference in New Issue
Block a user