panfrost: Detect implementations support AFBC
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 5 Oct 2021 20:01:00 +0000 (16:01 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 22 Oct 2021 23:33:38 +0000 (19:33 -0400)
commit3e168b97cc7d38e757fa5cd51ecd25c18d84daf6
treeb78c9126581e8994c93b44d8ea95fac3ccb566b6
parentebe9494b61bf7cb6bb4e714f4cd43390629c0c1b
panfrost: Detect implementations support AFBC

AFBC is an optional feature on Bifrost. If it is missing, a bit will be
set in the poorly named AFBC_FEATURES register. Check this so we can act
appropriately.

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