summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-08-22 11:30:13 -0700
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-08-22 13:31:06 -0700
commitae84f167869baac1f69af5bbc4303244b0622000 (patch)
treed32130661162e9495a499456b17edbd2f797f050
parent26ed431ea9ca3f4bf05627a463ea947318da25bd (diff)
pan/decode: Print stub for uniforms
We don't need to dump the contents necessary, but having the stub with the address is useful. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-rw-r--r--src/panfrost/pandecode/decode.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index 5d689711a7b7..3b826f39a38a 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -1704,6 +1704,16 @@ pandecode_uniform_buffers(mali_ptr pubufs, int ubufs_count, int job_no)
}
static void
+pandecode_uniforms(mali_ptr uniforms, unsigned uniform_count)
+{
+ pandecode_validate_buffer(uniforms, uniform_count * 16);
+
+ char *ptr = pointer_as_memory_reference(uniforms);
+ pandecode_log("vec4 uniforms[%u] = %s;\n", uniform_count, ptr);
+ free(ptr);
+}
+
+static void
pandecode_scratchpad(uintptr_t pscratchpad, int job_no, char *suffix)
{
@@ -2248,7 +2258,7 @@ pandecode_vertex_tiler_postfix_pre(
if (p->uniforms) {
if (uniform_count)
- pandecode_validate_buffer(p->uniforms, uniform_count * 16);
+ pandecode_uniforms(p->uniforms, uniform_count);
else
pandecode_msg("warn: Uniforms specified but not referenced\n");
} else if (uniform_count)