Module: Mesa Branch: main Commit: e9ff6f4f06184491591430e24a644553242c18be URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e9ff6f4f06184491591430e24a644553242c18be
Author: Jason Ekstrand <[email protected]> Date: Sat Aug 15 00:28:55 2020 -0500 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13171> --- src/compiler/nir/nir_print.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index ff14116e0f9..045d9b4d925 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -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 ""; } }
