Module: Mesa Branch: master Commit: 486dcfbbd955e01ff1d254cc533c3cc4692ad54b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=486dcfbbd955e01ff1d254cc533c3cc4692ad54b
Author: Eric Anholt <e...@anholt.net> Date: Tue Mar 31 11:39:45 2015 -0700 vc4: Tell shader-db how big our UBOs are, if present. I had regressed them for a while with the NIR work. --- src/gallium/drivers/vc4/vc4_program.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 9e145e5..d8726ca 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); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit