mesa: adjust usage of swapBytes/littleEndian in format_matches_format_and_type