-
Alyssa Rosenzweig authored
Midgard (v4, v5) and Bifrost v6 have swizzles on every pixel format descriptor, allowing for arbitrary component reordering. With v7, reordering is limited to a fixed set of common swizzles, which simplifies the hardware but to some extent limits the formats available. To handle, we split out the format tables, with the correct table for the current hardware loaded as dev->formats. v2: Switch sRGB flag from T/F to S/L per icecream's suggestion v3: Add back Z16_UNORM formats to fix trace changes. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Tested-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <mesa/mesa!7352>
c6bdd976