nir: Add a new nir_var_mem_constant variable mode
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6379>
This commit is contained in:

committed by
Marge Bot

parent
b9927c8c8d
commit
e4f07f8bdc
@@ -465,6 +465,8 @@ get_variable_mode_str(nir_variable_mode mode, bool want_local_global_mode)
|
||||
return "shared";
|
||||
case nir_var_mem_global:
|
||||
return "global";
|
||||
case nir_var_mem_constant:
|
||||
return "constant";
|
||||
case nir_var_shader_temp:
|
||||
return want_local_global_mode ? "shader_temp" : "";
|
||||
case nir_var_function_temp:
|
||||
|
Reference in New Issue
Block a user