From: Jason Ekstrand Date: Thu, 27 Aug 2020 21:12:57 +0000 (-0500) Subject: nir: Allow var_mem_global in nir_lower_vars_to_explicit_types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3719b69dfc496cdacfe857e1a42984c435eb8a6c;p=mesa.git nir: Allow var_mem_global in nir_lower_vars_to_explicit_types Reviewed-by: Jesse Natalie Reviewed-by: Boris Brezillon Reviewed-by: Karol Herbst Part-of: --- diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index bac6b8e99b4..1fc69f161a1 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -1756,7 +1756,8 @@ nir_lower_vars_to_explicit_types(nir_shader *shader, * - compact shader inputs/outputs * - interface types */ - ASSERTED nir_variable_mode supported = nir_var_mem_shared | + ASSERTED nir_variable_mode supported = + nir_var_mem_shared | nir_var_mem_global | nir_var_shader_temp | nir_var_function_temp; assert(!(modes & ~supported) && "unsupported");