From: Alyssa Rosenzweig Date: Mon, 19 Aug 2019 21:58:36 +0000 (-0700) Subject: pan/decode: Don't print unreferenced attribute memory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9dfbc8dc03d2339c7deac0c1c44fe1968b402d4a;p=mesa.git pan/decode: Don't print unreferenced attribute memory This is a source of uninitialized memory leaking into the traces. Signed-off-by: Alyssa Rosenzweig --- 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