From c2c8b1ac5791348977fed3d6056ae50af1721649 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 26 May 2020 18:10:39 -0400 Subject: [PATCH] pan/decode: Fix tiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ../src/panfrost/pandecode/decode.c:1176:60: warning: taking address of packed member of ‘struct mali_framebuffer’ may result in an unaligned pointer value [-Waddress-of-packed-member] 1176 | pandecode_midgard_tiler_descriptor(&fb->tiler, fb->width1 + 1, fb->height1 + 1, is_fragment, true); Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/pandecode/decode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 24ec19ee324..d5e07a0940c 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -1172,8 +1172,10 @@ pandecode_mfbd_bfr(uint64_t gpu_va, int job_no, bool is_fragment, bool is_comput if (!is_compute) if (is_bifrost) pandecode_bifrost_tiler_descriptor(fb); - else - pandecode_midgard_tiler_descriptor(&fb->tiler, fb->width1 + 1, fb->height1 + 1, is_fragment, true); + else { + const struct midgard_tiler_descriptor t = fb->tiler; + pandecode_midgard_tiler_descriptor(&t, fb->width1 + 1, fb->height1 + 1, is_fragment, true); + } else pandecode_msg("XXX: skipping compute MFBD, fixme\n"); -- 2.30.2