panfrost: add some missing fallthrough comments
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 6 Jul 2020 03:44:56 +0000 (13:44 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 03:04:03 +0000 (03:04 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5766>

src/panfrost/bifrost/disassemble.c

index c3b7fe6c4138eed5a7ae961312edc191792323fb..92fbf20a17f34b126a0d85cf3e3619a18b7ee151 100644 (file)
@@ -1592,6 +1592,7 @@ static void dump_add(FILE *fp, uint64_t word, struct bifrost_regs regs,
         }
         case ADD_LOAD_ATTR:
                 fprintf(fp, "location:%d, ", (ADD.op >> 3) & 0x1f);
+                /* fallthrough */
         case ADD_TWO_SRC:
                 dump_src(fp, ADD.src0, regs, consts, false);
                 fprintf(fp, ", ");
@@ -1987,6 +1988,7 @@ bool dump_clause(FILE *fp, uint32_t *words, unsigned *size, unsigned offset, boo
                                 // only constants can come after this
                                 num_instrs = 1;
                                 done = stop;
+                                /* fallthrough */
                         case 0x5:
                                 header_bits = bits(words[2], 19, 32) | ((uint64_t) words[3] << (32 - 19));
                                 main_instr.add_bits |= (tag & 0x7) << 17;