diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-20 11:24:32 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 08:40:53 -0700 |
commit | dcde5bd157e6f4271eb9cf6feb5d54d37c7ff70a (patch) | |
tree | f99156df06a42100616159acb3f4cdfa15763792 /src/panfrost/pandecode | |
parent | 89c5370118e9b24d177b0296111f4765805d4641 (diff) |
pan/decode: Normalize case matching XXX format
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/pandecode')
-rw-r--r-- | src/panfrost/pandecode/decode.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index f75fff86eac..d561580420c 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -340,7 +340,8 @@ pandecode_draw_mode(enum mali_draw_mode mode) DEFINE_CASE(QUAD_STRIP); default: - return "MALI_TRIANGLES /* XXX: Unknown GL mode, check dump */"; + pandecode_msg("XXX: invalid draw mode %X\n", mode); + return ""; } #undef DEFINE_CASE @@ -361,7 +362,8 @@ pandecode_func(enum mali_func mode) DEFINE_CASE(ALWAYS); default: - return "MALI_FUNC_NEVER /* XXX: Unknown function, check dump */"; + pandecode_msg("XXX: invalid func %X\n", mode); + return ""; } } #undef DEFINE_CASE @@ -382,7 +384,8 @@ pandecode_alt_func(enum mali_alt_func mode) DEFINE_CASE(ALWAYS); default: - return "MALI_FUNC_NEVER /* XXX: Unknown function, check dump */"; + pandecode_msg("XXX: invalid alt func %X\n", mode); + return ""; } } #undef DEFINE_CASE @@ -402,7 +405,8 @@ pandecode_stencil_op(enum mali_stencil_op op) DEFINE_CASE(DECR); default: - return "MALI_STENCIL_KEEP /* XXX: Unknown stencil op, check dump */"; + pandecode_msg("XXX: invalid stencil op %X\n", op); + return ""; } } @@ -420,7 +424,8 @@ static char *pandecode_attr_mode(enum mali_attr_mode mode) DEFINE_CASE(IMAGE); DEFINE_CASE(INTERNAL); default: - return "MALI_ATTR_UNUSED /* XXX: Unknown stencil op, check dump */"; + pandecode_msg("XXX: invalid attribute mode %X\n", mode); + return ""; } } @@ -441,7 +446,8 @@ pandecode_channel(enum mali_channel channel) DEFINE_CASE(RESERVED_1); default: - return "MALI_CHANNEL_ZERO /* XXX: Unknown channel, check dump */"; + pandecode_msg("XXX: invalid channel %X\n", channel); + return ""; } } #undef DEFINE_CASE @@ -457,7 +463,8 @@ pandecode_wrap_mode(enum mali_wrap_mode op) DEFINE_CASE(MIRRORED_REPEAT); default: - return "MALI_WRAP_REPEAT /* XXX: Unknown wrap mode, check dump */"; + pandecode_msg("XXX: invalid wrap mode %X\n", op); + return ""; } } #undef DEFINE_CASE @@ -496,9 +503,9 @@ pandecode_mfbd_block_format(enum mali_mfbd_block_format fmt) #define DEFINE_CASE(name) case MALI_EXCEPTION_ACCESS_## name: return ""#name static char * -pandecode_exception_access(enum mali_exception_access fmt) +pandecode_exception_access(enum mali_exception_access access) { - switch (fmt) { + switch (access) { DEFINE_CASE(NONE); DEFINE_CASE(EXECUTE); DEFINE_CASE(READ); |