Skip to content

freedreno: Fix "Offset of packed bitfield changed" warnings:

Emma Anholt requested to merge anholt/mesa:fd-packed-bitfield-alignment into master

Example:

../src/freedreno/ir2/instr-a2xx.h:384:1: note: offset of packed bit-field
‘const_index’ has changed in GCC 4.4
  384 | } instr_fetch_vtx_t;

It's apparently due to bitfields that would cross the width of their type. Just expand the types of the affected fields so that the compiler quiets down.

Edited by Emma Anholt

Merge request reports

Loading