pan/decode: Remove SHORT_SLIDE indirection
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 24 Jan 2020 13:25:08 +0000 (08:25 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:53:31 +0000 (18:53 +0000)
commit58aa2b8cfc62044bfa35ee2f9e50559af0e6c7e0
tree840fedce312bd9e982fb3d6b5f39119e5890625b
parent7d52b3a18bb4263608faf9cd44cfd6d9b1aee474
pan/decode: Remove SHORT_SLIDE indirection

../src/panfrost/pandecode/decode.c: In function ‘pandecode_compute_fbd’:
../src/panfrost/pandecode/decode.c:789:35: warning: taking address of packed member of ‘struct mali_compute_fbd’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  789 |         pandecode_u32_slide(num, s->unknown ## num, ARRAY_SIZE(s->unknown ## num))
      |                                  ~^~~~~~~~~
../src/panfrost/pandecode/decode.c:800:9: note: in expansion of macro ‘SHORT_SLIDE’
  800 |         SHORT_SLIDE(1);
      |         ^~~~~~~~~~~

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3543>
src/panfrost/pandecode/decode.c