From 1380db9fa8dc5a519a35394ec4fa6e5953e00ffe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 24 Oct 2019 00:22:58 -0400 Subject: [PATCH] radeonsi: don't print diagnostic LLVM remarks and notes We don't use them. Reviewed-by: Timothy Arceri --- src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c index 1c6522322ff..91e9bd3dd68 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -44,7 +44,6 @@ static void si_diagnostic_handler(LLVMDiagnosticInfoRef di, void *context) { struct si_llvm_diagnostics *diag = (struct si_llvm_diagnostics *)context; LLVMDiagnosticSeverity severity = LLVMGetDiagInfoSeverity(di); - char *description = LLVMGetDiagInfoDescription(di); const char *severity_str = NULL; switch (severity) { @@ -55,15 +54,13 @@ static void si_diagnostic_handler(LLVMDiagnosticInfoRef di, void *context) severity_str = "warning"; break; case LLVMDSRemark: - severity_str = "remark"; - break; case LLVMDSNote: - severity_str = "note"; - break; default: - severity_str = "unknown"; + return; } + char *description = LLVMGetDiagInfoDescription(di); + pipe_debug_message(diag->debug, SHADER_INFO, "LLVM diagnostic (%s): %s", severity_str, description); -- 2.30.2