vc4: Tell shader-db how big our UBOs are, if present.
authorEric Anholt <eric@anholt.net>
Tue, 31 Mar 2015 18:39:45 +0000 (11:39 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2015 17:57:01 +0000 (10:57 -0700)
I had regressed them for a while with the NIR work.

src/gallium/drivers/vc4/vc4_program.c

index 9e145e5..d8726ca 100644 (file)
@@ -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);