panfrost: Permit AFBC of RGB8
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 21 May 2020 23:43:18 +0000 (19:43 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Jun 2020 18:10:59 +0000 (18:10 +0000)
Ugly but hey.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5284>

src/panfrost/encoder/pan_afbc.c

index 26ba7489ec3cdb32fbcc132f6a57c8e8a5579251..27dacabddf32f46aa5b5f4d50815f2ef915b271b 100644 (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))