panfrost: Remove blend prettyprinters
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 5 Aug 2020 19:45:52 +0000 (15:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 6 Aug 2020 23:54:24 +0000 (23:54 +0000)
Unused and mostly wrong too.

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

src/panfrost/pandecode/pan_pretty_print.c
src/panfrost/pandecode/pan_pretty_print.h

index 23664e43958b9ee2ed074b8be407b29ec461d1be..65dcbb6426713da5b1bca5e6c47f69879619d0f8 100644 (file)
@@ -148,103 +148,3 @@ char *pandecode_format(enum mali_format format)
 }
 
 #undef DEFINE_CASE
-
-/* Helper to dump fixed-function blend part for debugging */
-
-static const char *
-panfrost_factor_name(enum mali_dominant_factor factor)
-{
-        switch (factor) {
-        case MALI_DOMINANT_UNK0:
-                return "unk0";
-
-        case MALI_DOMINANT_ZERO:
-                return "zero";
-
-        case MALI_DOMINANT_SRC_COLOR:
-                return "source color";
-
-        case MALI_DOMINANT_DST_COLOR:
-                return "dest color";
-
-        case MALI_DOMINANT_UNK4:
-                return "unk4";
-
-        case MALI_DOMINANT_SRC_ALPHA:
-                return "source alpha";
-
-        case MALI_DOMINANT_DST_ALPHA:
-                return "dest alpha";
-
-        case MALI_DOMINANT_CONSTANT:
-                return "constant";
-        }
-
-        return "unreachable";
-}
-
-static const char *
-panfrost_modifier_name(enum mali_blend_modifier mod)
-{
-        switch (mod) {
-        case MALI_BLEND_MOD_UNK0:
-                return "unk0";
-
-        case MALI_BLEND_MOD_NORMAL:
-                return "normal";
-
-        case MALI_BLEND_MOD_SOURCE_ONE:
-                return "source one";
-
-        case MALI_BLEND_MOD_DEST_ONE:
-                return "dest one";
-        }
-
-        return "unreachable";
-}
-
-static void
-panfrost_print_fixed_part(const char *name, unsigned u)
-{
-        struct mali_blend_mode part;
-        memcpy(&part, &u, sizeof(part));
-
-        printf("%s blend mode (%X):\n", name, u);
-
-        printf(" %s dominant:\n",
-               (part.dominant == MALI_BLEND_DOM_SOURCE) ? "source" : "destination");
-
-        printf("   %s\n", panfrost_factor_name(part.dominant_factor));
-
-        if (part.complement_dominant)
-                printf("   complement\n");
-
-
-        printf(" nondominant %s\n",
-               (part.nondominant_mode == MALI_BLEND_NON_MIRROR) ? "mirror" : "zero");
-
-
-        printf(" mode: %s\n", panfrost_modifier_name(part.clip_modifier));
-
-        if (part.negate_source) printf(" negate source\n");
-
-        if (part.negate_dest) printf(" negate dest\n");
-
-        assert(!(part.unused_0 || part.unused_1));
-}
-
-void
-panfrost_print_blend_equation(struct mali_blend_equation eq)
-{
-        printf("\n");
-        panfrost_print_fixed_part("RGB", eq.rgb_mode);
-        panfrost_print_fixed_part("Alpha", eq.alpha_mode);
-
-        assert(!eq.zero1);
-
-        printf("Mask: %s%s%s%s\n",
-               (eq.color_mask & MALI_MASK_R) ? "R" : "",
-               (eq.color_mask & MALI_MASK_G) ? "G" : "",
-               (eq.color_mask & MALI_MASK_B) ? "B" : "",
-               (eq.color_mask & MALI_MASK_A) ? "A" : "");
-}
index 8fe32f72b6880484d04235455105350a5abd558a..3c58e22473d0023906d57aa36d636ecef66475ab 100644 (file)
@@ -27,6 +27,5 @@
 #include "panfrost-job.h"
 
 char *pandecode_format(enum mali_format format);
-void panfrost_print_blend_equation(struct mali_blend_equation eq);
 
 #endif