nir_load_libclc: Mark libclc shader as internal

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>
This commit is contained in:
Jesse Natalie
2020-11-12 09:52:11 -08:00
committed by Marge Bot
parent cab995b463
commit a0aaba26cd

View 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);