summaryrefslogtreecommitdiff
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-08-30 17:00:09 -0700
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2019-09-03 13:41:34 +0200
commitd6d6d6327a9c0ca555cefefc4a4922bf75fbea41 (patch)
treed5cc204b980f9e3f2c180b57a03a3c3d9182762d /src/panfrost
parentc1c038667619c7cb2d21182581b973494e8523b8 (diff)
downloadmesa-d6d6d6327a9c0ca555cefefc4a4922bf75fbea41.tar.gz
pan/decode: Fix uninitialized variables
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/pandecode/decode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index d0634c95720..aef69da1c48 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -639,7 +639,10 @@ pandecode_sfbd(uint64_t gpu_va, int job_no, bool is_fragment)
struct pandecode_mapped_memory *mem = pandecode_find_mapped_gpu_mem_containing(gpu_va);
const struct mali_single_framebuffer *PANDECODE_PTR_VAR(s, mem, (mali_ptr) gpu_va);
- struct pandecode_fbd info;
+ struct pandecode_fbd info = {
+ .has_extra = false,
+ .rt_count = 1
+ };
pandecode_log("struct mali_single_framebuffer framebuffer_%"PRIx64"_%d = {\n", gpu_va, job_no);
pandecode_indent++;
@@ -653,7 +656,6 @@ pandecode_sfbd(uint64_t gpu_va, int job_no, bool is_fragment)
info.width = s->width + 1;
info.height = s->height + 1;
- info.rt_count = 1;
pandecode_prop("width = MALI_POSITIVE(%" PRId16 ")", info.width);
pandecode_prop("height = MALI_POSITIVE(%" PRId16 ")", info.height);
@@ -1802,6 +1804,7 @@ pandecode_shader_disassemble(mali_ptr shader_ptr, int shader_no, int type,
stats.instruction_count = 0;
stats.bundle_count = 0;
stats.quadword_count = 0;
+ stats.helper_invocations = false;
} else {
stats = disassemble_midgard(code, sz);
}