6a9364f4bc
`pvr_get_hw_clear_color()` now packs formats based on the accum format which is how the hw deals with the formats internally and might not line up exactly with the vk format representation. E.g. R5G6B5_UNORM_PACK16 uses the U8 accum format so the USC will internally use 3 bytes (1 per component) to deal with it instead of 2 bytes which the vk format specifies. On USC EMITPIX, the PBE will pack the results to 2 bytes using PACKMODE_R5G6B5 resulting in the final value being in the vk format representation. Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19218>