mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
gallium/radeon: Only print a message for LLVM diagnostic errors
We were printing messages for all diagnostic types, which was spamming the console for some OpenCL programs.
This commit is contained in:
parent
b9f501bc6b
commit
9e5beac236
1 changed files with 4 additions and 2 deletions
|
|
@ -87,11 +87,13 @@ static void radeonDiagnosticHandler(LLVMDiagnosticInfoRef di, void *context) {
|
|||
char *diaginfo_message;
|
||||
|
||||
diaginfo_message = LLVMGetDiagInfoDescription(di);
|
||||
fprintf(stderr,"LLVM triggered Diagnostic Handler: %s\n", diaginfo_message);
|
||||
LLVMDisposeMessage(diaginfo_message);
|
||||
|
||||
diagnosticflag = (unsigned int *)context;
|
||||
*diagnosticflag = ((LLVMDSError == LLVMGetDiagInfoSeverity(di)) ? 1 : 0);
|
||||
if (LLVMGetDiagInfoSeverity(di) == LLVMDSError) {
|
||||
*diagnosticflag = 1;
|
||||
fprintf(stderr,"LLVM triggered Diagnostic Handler: %s\n", diaginfo_message);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue