panfrost: Permit AFBC of RGB8

Ugly but hey.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5284>
This commit is contained in:
Alyssa Rosenzweig 2020-05-21 19:43:18 -04:00 committed by Marge Bot
parent 3a8e5eb1b1
commit 89a9cc7645
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ panfrost_format_supports_afbc(enum pipe_format format)
if (util_format_is_rgba8_variant(desc))
return true;
/* Gross, but probably good enough */
if (format == PIPE_FORMAT_R8G8B8_UNORM)
return true;
/* Only Z24S8 variants are compressible as Z/S */
if (panfrost_is_z24s8_variant(format))