radeonsi: don't print diagnostic LLVM remarks and notes
authorMarek Olšák <marek.olsak@amd.com>
Thu, 24 Oct 2019 04:22:58 +0000 (00:22 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 29 Oct 2019 01:36:18 +0000 (21:36 -0400)
We don't use them.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c

index 1c6522322ff643c5271216db0f5af6d166d36947..91e9bd3dd68d93b17f8cd9c24dcb4a53a5326f0e 100644 (file)
@@ -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);