From 9dfbc8dc03d2339c7deac0c1c44fe1968b402d4a Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 19 Aug 2019 14:58:36 -0700 Subject: [PATCH] pan/decode: Don't print unreferenced attribute memory This is a source of uninitialized memory leaking into the traces. Signed-off-by: Alyssa Rosenzweig --- src/panfrost/pandecode/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index abf832bcf95..c9df2cecc61 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -1801,7 +1801,7 @@ pandecode_vertex_tiler_postfix_pre(const struct mali_vertex_tiler_postfix *p, unsigned max_attr_index = pandecode_attribute_meta(job_no, attribute_count, p, false, suffix); attr_mem = pandecode_find_mapped_gpu_mem_containing(p->attributes); - pandecode_attributes(attr_mem, p->attributes, job_no, suffix, max_attr_index + 1, false); + pandecode_attributes(attr_mem, p->attributes, job_no, suffix, max_attr_index, false); } /* Varyings are encoded like attributes but not actually sent; we just -- 2.30.2