From 3719b69dfc496cdacfe857e1a42984c435eb8a6c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 27 Aug 2020 16:12:57 -0500 Subject: [PATCH] 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: --- src/compiler/nir/nir_lower_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.30.2