From: Alyssa Rosenzweig Date: Tue, 26 May 2020 22:10:39 +0000 (-0400) Subject: pan/decode: Fix tiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2c8b1ac5791348977fed3d6056ae50af1721649;p=mesa.git pan/decode: Fix tiler warning ../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: --- 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");