From: Michel Dänzer Date: Fri, 15 Jan 2016 03:13:15 +0000 (+0900) Subject: radeonsi: Print "LLVM emitted unknown config register" warning only once X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4297259fc87b513f307ba9af3289b98b54f2cbb1;p=mesa.git radeonsi: Print "LLVM emitted unknown config register" warning only once Say "LLVM" instead of "Compiler" for clarity. Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index cc9718e42d3..3ab054c3253 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -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; } }