summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-03-31 11:39:45 -0700
committerEric Anholt <[email protected]>2015-04-01 10:57:01 -0700
commit486dcfbbd955e01ff1d254cc533c3cc4692ad54b (patch)
tree7070a17d160a0e8631fce402a5ab36ccde3d99f3 /src
parenta3a07d46d1a8e89136669dd4bb242c7bd5d10015 (diff)
vc4: Tell shader-db how big our UBOs are, if present.
I had regressed them for a while with the NIR work.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 9e145e54ccd..d8726ca11fd 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -2280,6 +2280,12 @@ vc4_get_compiled_shader(struct vc4_context *vc4, enum qstage stage,
j++;
}
}
+ if (shader->ubo_size) {
+ fprintf(stderr, "SHADER-DB: %s prog %d/%d: %d UBO uniforms\n",
+ qir_get_stage_name(c->stage),
+ c->program_id, c->variant_id,
+ shader->ubo_size / 4);
+ }
qir_compile_destroy(c);