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
@@ -968,6 +968,12 @@ print_tex_instr(nir_tex_instr *instr, print_state *state)
|
||||
case nir_tex_src_sampler_offset:
|
||||
fprintf(fp, "(sampler_offset)");
|
||||
break;
|
||||
case nir_tex_src_texture_handle:
|
||||
fprintf(fp, "(texture_handle)");
|
||||
break;
|
||||
case nir_tex_src_sampler_handle:
|
||||
fprintf(fp, "(sampler_handle)");
|
||||
break;
|
||||
case nir_tex_src_plane:
|
||||
fprintf(fp, "(plane)");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user