Commit 27aa31fa authored by Emma Anholt's avatar Emma Anholt
Browse files

vc4: Fix printing of shader-db debug when shader-db isn't turned on.

parent 5341349d
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment