Module: Mesa Branch: main Commit: c06a18ad9a5701984644c2195f030bd5e0adc6a7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c06a18ad9a5701984644c2195f030bd5e0adc6a7
Author: Karol Herbst <[email protected]> Date: Thu May 18 01:22:51 2023 +0200 rusticl/spirv: skip printing info messages Those are quite spammy and add no value. Signed-off-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23091> --- src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs b/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs index f53203af000..ee9f1233421 100644 --- a/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs +++ b/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs @@ -48,11 +48,13 @@ unsafe extern "C" fn spirv_msg_callback(data: *mut c_void, msg: *const c_char) { unsafe extern "C" fn spirv_to_nir_msg_callback( data: *mut c_void, - _dbg_level: mesa_rust_gen::nir_spirv_debug_level, + dbg_level: nir_spirv_debug_level, _offset: usize, msg: *const c_char, ) { - callback_impl(data, msg); + if dbg_level >= nir_spirv_debug_level::NIR_SPIRV_DEBUG_LEVEL_WARNING { + callback_impl(data, msg); + } } fn create_clc_logger(msgs: &mut Vec<String>) -> clc_logger {
