diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-18 13:23:00 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-19 03:23:07 +0000 |
commit | d797822d31c1a19580de6a357f96405f04ad916a (patch) | |
tree | 1beb13ce8debcc7610526872b406f0bdb6f8c4dc /src/panfrost/bifrost/bi_print.c | |
parent | 42af9f47c8a91caad6803fdaccf111053e9303c4 (diff) |
pan/bi: Pretty-print clause types in disassembler
Also note that type=1 is for load_vary.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4242>
Diffstat (limited to 'src/panfrost/bifrost/bi_print.c')
-rw-r--r-- | src/panfrost/bifrost/bi_print.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index 389d4fff409..2a03b3cab5d 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -27,6 +27,23 @@ #include "bi_print.h" const char * +bi_clause_type_name(enum bifrost_clause_type T) +{ + switch (T) { + case BIFROST_CLAUSE_NONE: return ""; + case BIFROST_CLAUSE_LOAD_VARY: return "load_vary"; + case BIFROST_CLAUSE_UBO: return "ubo"; + case BIFROST_CLAUSE_TEX: return "tex"; + case BIFROST_CLAUSE_SSBO_LOAD: return "load"; + case BIFROST_CLAUSE_SSBO_STORE: return "store"; + case BIFROST_CLAUSE_BLEND: return "blend"; + case BIFROST_CLAUSE_ATEST: return "atest"; + case BIFROST_CLAUSE_64BIT: return "64"; + default: return "??"; + } +} + +const char * bi_output_mod_name(enum bifrost_outmod mod) { switch (mod) { |