projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
679a654
)
radeonsi: Print "LLVM emitted unknown config register" warning only once
author
Michel Dänzer
<michel.daenzer@amd.com>
Fri, 15 Jan 2016 03:13:15 +0000
(12:13 +0900)
committer
Michel 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_shader.c
b/src/gallium/drivers/radeonsi/si_shader.c
index cc9718e42d3460c8d6f6365d23dd7b6d632fda49..3ab054c32532755b08b37363682b1a358c3f8cd3 100644
(file)
--- 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;
}
}