mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 22:10:11 +01:00
radeonsi: don't print diagnostic LLVM remarks and notes
We don't use them. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
c52ebbcea4
commit
1380db9fa8
1 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue