freedreno/a2xx: Fix compiler warning in disasm.
authorEric Anholt <eric@anholt.net>
Fri, 17 Jul 2020 17:48:56 +0000 (10:48 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 21:47:32 +0000 (21:47 +0000)
commit4080f8bf2b02441f637bc3f0c00c96060e2f02f0
tree52e01db30bf6c21c803224a4292e25105a250ea0
parentcf55abe750f04c8287014b459a1b318582fab950
freedreno/a2xx: Fix compiler warning in disasm.

warning: converting a packed ‘instr_cf_t’ {aka ‘union <anonymous>’}
pointer (alignment 1) to a ‘uint16_t’ {aka ‘short unsigned int’} pointer
(alignment 2) may result in an unaligned pointer value
[-Waddress-of-packed-member]

We may know that we'll only ever have aligned instr_cf_ts, but gcc
doesn't.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5955>
src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c