Mesa (master): panfrost: Add pandecode entries for ASTC/ETC formats

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 21 13:59:20 UTC 2020


Module: Mesa
Branch: master
Commit: 14b37ebd44e6964f87bc256c0e36586dacb16e56
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=14b37ebd44e6964f87bc256c0e36586dacb16e56

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Jan 16 10:43:03 2020 -0500

panfrost: Add pandecode entries for ASTC/ETC formats

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at 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 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/panfrost/pandecode/pan_pretty_print.c b/src/panfrost/pandecode/pan_pretty_print.c
index 0f4183c4840..e0f00541f8a 100644
--- a/src/panfrost/pandecode/pan_pretty_print.c
+++ b/src/panfrost/pandecode/pan_pretty_print.c
@@ -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);



More information about the mesa-commit mailing list