panfrost: Add internal afbc_formats
authorAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 16 Oct 2021 23:45:27 +0000 (19:45 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 23 Oct 2021 01:55:32 +0000 (21:55 -0400)
commit93c9123c313d688913ed86f77c6841738f94988a
tree6542b84607dcd8b52526fb2ce06d05d50c15961d
parent342ed4909fe7611525b9029977463ef3291ce7ba
panfrost: Add internal afbc_formats

We need to know the internal (physical) formats used for AFBC of a given
logical format, in order to check format compatibility and determine if
we need to decompress AFBC for conformance.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13205>
src/panfrost/lib/pan_afbc.c
src/panfrost/lib/pan_texture.h