diff options
author | Marek Olšák <[email protected]> | 2019-10-24 00:22:58 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-10-28 21:36:18 -0400 |
commit | 1380db9fa8dc5a519a35394ec4fa6e5953e00ffe (patch) | |
tree | 9ab95aae055a4d5d9a448cbc73db3e6300fd10b5 /src/gallium | |
parent | c52ebbcea4f63e2da68de56c3839f6a72e816f46 (diff) |
radeonsi: don't print diagnostic LLVM remarks and notes
We don't use them.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 9 |
1 files 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); |