panfrost: Add pandecode entries for ASTC/ETC formats
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 16 Jan 2020 15:43:03 +0000 (10:43 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 21 Jan 2020 13:35:23 +0000 (08:35 -0500)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3414>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3414>

src/panfrost/pandecode/pan_pretty_print.c

index 0f4183c48401853fc45543e04f6992f87134dcb4..e0f00541f8ad7ca6de2172226930dcda933ac603 100644 (file)
@@ -36,6 +36,15 @@ char *pandecode_format(enum mali_format format)
         static char unk_format_str[10];
 
         switch (format) {
+                DEFINE_CASE(ETC2_RGB8);
+                DEFINE_CASE(ETC2_R11_UNORM);
+                DEFINE_CASE(ETC2_RGBA8);
+                DEFINE_CASE(ETC2_RG11_UNORM);
+                DEFINE_CASE(ETC2_R11_SNORM);
+                DEFINE_CASE(ETC2_RG11_SNORM);
+                DEFINE_CASE(ETC2_RGB8A1);
+                DEFINE_CASE(ASTC_SRGB_SUPP);
+                DEFINE_CASE(ASTC_HDR_SUPP);
                 DEFINE_CASE(RGB565);
                 DEFINE_CASE(RGB5_A1_UNORM);
                 DEFINE_CASE(RGB10_A2_UNORM);