nir/print: Add support for generic pointers

The way they're handled is that deref->modes is treated as a bitfield of
possible modes.  Variables are required to have a specific mode and
derefs with deref_type_var are as well.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13171>
This commit is contained in:
Jason Ekstrand
2020-08-15 00:28:55 -05:00
committed by Marge Bot
parent 24bc6c51e1
commit e9ff6f4f06

View File

@@ -561,6 +561,8 @@ get_variable_mode_str(nir_variable_mode mode, bool want_local_global_mode)
case nir_var_mem_task_payload:
return "task_payload";
default:
if (mode && (mode & nir_var_mem_generic) == mode)
return "generic";
return "";
}
}