panfrost: Luminance-alpha AFBC unsupported on v7+
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 14 Dec 2022 05:11:43 +0000 (00:11 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Dec 2022 18:27:47 +0000 (18:27 +0000)
commit0784adc66809828914d3ac6f648c2b04a2970879
tree6c97490c822474b979ba340cce691e1dcf6395a0
parenta3f9aa3b3e4db19d7a33bc0017d0291336efea10
panfrost: Luminance-alpha AFBC unsupported on v7+

The L8_UNORM, A8_UNORM, and L8A8_UNORM v7 formats do not support AFBC,
regardless of swizzling. We're about to lift the restrictions on swizzling with
AFBC on v7, so we'll need to handle these cases explicitly to avoid using AFBC
in these cases.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20311>
src/panfrost/lib/pan_afbc.c