nir: Make texture instruction names more consistent

This commit renames nir_instr_as_texture to nir_instr_as_tex and renames
nir_instr_type_texture to nir_instr_type_tex to be consistent with
nir_tex_instr.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
Jason Ekstrand
2014-12-05 11:03:06 -08:00
parent d6fe35a418
commit cd4b995254
11 changed files with 25 additions and 25 deletions

View File

@@ -433,8 +433,8 @@ get_instr_predicate(nir_instr *instr)
else
return NULL;
case nir_instr_type_texture:
tex_instr = nir_instr_as_texture(instr);
case nir_instr_type_tex:
tex_instr = nir_instr_as_tex(instr);
if (tex_instr->has_predicate)
return &tex_instr->predicate;
else