nir: Allow var_mem_global in nir_lower_vars_to_explicit_types
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 27 Aug 2020 21:12:57 +0000 (16:12 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>

src/compiler/nir/nir_lower_io.c

index bac6b8e99b46b62524f8e1d67b372cbb2fd41d17..1fc69f161a128a3a17b09ca9b0fb8d953f3165d2 100644 (file)
@@ -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");