From: Alyssa Rosenzweig Date: Thu, 21 May 2020 23:43:18 +0000 (-0400) Subject: panfrost: Permit AFBC of RGB8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89a9cc764533f4cad123dc92c49e89bb181873c3;p=mesa.git panfrost: Permit AFBC of RGB8 Ugly but hey. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/encoder/pan_afbc.c b/src/panfrost/encoder/pan_afbc.c index 26ba7489ec3..27dacabddf3 100644 --- a/src/panfrost/encoder/pan_afbc.c +++ b/src/panfrost/encoder/pan_afbc.c @@ -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))