projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
492d664
)
nir: Include num_ubos in the printed shader (if nonzero).
author
Eric Anholt
<eric@anholt.net>
Tue, 12 May 2020 23:25:13 +0000
(16:25 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 14 May 2020 00:10:43 +0000
(
00:10
+0000)
I keep wanting this number for debugging shaders.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4858>
src/compiler/nir/nir_print.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_print.c
b/src/compiler/nir/nir_print.c
index 6fc8fc9b5c1d275d37bc5c676d99110b1c1c7405..e9b6b1097cd4d5f2782478cb539a21a3e92cffbd 100644
(file)
--- a/
src/compiler/nir/nir_print.c
+++ b/
src/compiler/nir/nir_print.c
@@
-1496,6
+1496,8
@@
nir_print_shader_annotated(nir_shader *shader, FILE *fp,
fprintf(fp, "inputs: %u\n", shader->num_inputs);
fprintf(fp, "outputs: %u\n", shader->num_outputs);
fprintf(fp, "uniforms: %u\n", shader->num_uniforms);
+ if (shader->info.num_ubos)
+ fprintf(fp, "ubos: %u\n", shader->info.num_ubos);
fprintf(fp, "shared: %u\n", shader->num_shared);
if (shader->scratch_size)
fprintf(fp, "scratch: %u\n", shader->scratch_size);