summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-07-17 11:52:09 -0700
committerEric Anholt <[email protected]>2015-07-17 12:25:55 -0700
commit27aa31fab40783356207ba5dabd839b430496e7b (patch)
treeaee536e66dc4b64172d5aa60217215065dcf3bac /src
parent5341349dde6f5c70af188e48ef0082e6e7d5361f (diff)
vc4: Fix printing of shader-db debug when shader-db isn't turned on.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index ce99989a79d..75c1be4f421 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -2306,10 +2306,12 @@ vc4_get_compiled_shader(struct vc4_context *vc4, enum qstage stage,
}
}
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);
+ if (vc4_debug & VC4_DEBUG_SHADERDB) {
+ 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);