nir_load_libclc: Mark libclc shader as internal
authorJesse Natalie <jenatali@microsoft.com>
Thu, 12 Nov 2020 17:52:11 +0000 (09:52 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Nov 2020 04:05:37 +0000 (04:05 +0000)
This allows NIR_PRINT to skip passes run on it.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7565>

src/compiler/spirv/nir_load_libclc.c

index 18da4b9..18d4614 100644 (file)
@@ -289,6 +289,7 @@ nir_load_libclc_shader(unsigned ptr_bit_size,
     * already ready to lower.  This means we need to inline any function_temp
     * initializers and lower any early returns.
     */
+   nir->info.internal = true;
    NIR_PASS_V(nir, nir_lower_variable_initializers, nir_var_function_temp);
    NIR_PASS_V(nir, nir_lower_returns);