radeonsi: Print "LLVM emitted unknown config register" warning only once
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 15 Jan 2016 03:13:15 +0000 (12:13 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 18 Jan 2016 08:39:37 +0000 (17:39 +0900)
Say "LLVM" instead of "Compiler" for clarity.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index cc9718e42d3460c8d6f6365d23dd7b6d632fda49..3ab054c32532755b08b37363682b1a358c3f8cd3 100644 (file)
@@ -3735,8 +3735,15 @@ void si_shader_binary_read_config(struct radeon_shader_binary *binary,
                                G_00B860_WAVESIZE(value) * 256 * 4 * 1;
                        break;
                default:
-                       fprintf(stderr, "Warning: Compiler emitted unknown "
-                               "config register: 0x%x\n", reg);
+                       {
+                               static bool printed;
+
+                               if (!printed) {
+                                       fprintf(stderr, "Warning: LLVM emitted unknown "
+                                               "config register: 0x%x\n", reg);
+                                       printed = true;
+                               }
+                       }
                        break;
                }
        }