Mesa (master): nir_load_libclc: Mark libclc shader as internal

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 18 04:25:34 UTC 2020


Module: Mesa
Branch: master
Commit: a0aaba26cd4860a51c63ede351e02e4a7046c2c7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0aaba26cd4860a51c63ede351e02e4a7046c2c7

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Thu Nov 12 09:52:11 2020 -0800

nir_load_libclc: Mark libclc shader as internal

This allows NIR_PRINT to skip passes run on it.

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

---

 src/compiler/spirv/nir_load_libclc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/spirv/nir_load_libclc.c b/src/compiler/spirv/nir_load_libclc.c
index 18da4b92586..18d46147b17 100644
--- a/src/compiler/spirv/nir_load_libclc.c
+++ b/src/compiler/spirv/nir_load_libclc.c
@@ -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);
 



More information about the mesa-commit mailing list