panfrost: add some missing fallthrough comments to bi_pack.c
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 6 Jul 2020 04:00:30 +0000 (14:00 +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/bi_pack.c

index b865b2c59c23e7bb247649e06be7c310680f9172..96a155dc6a6e8ce0122335ee028dbeb167304b1a 100644 (file)
@@ -719,6 +719,7 @@ bi_cond_to_csel(enum bi_cond cond, bool *flip, bool *invert, nir_alu_type T)
         switch (cond){
         case BI_COND_LT:
                 *flip = true;
+                /* fallthrough */
         case BI_COND_GT: {
                 const enum bifrost_csel_cond ops[] = {
                         BIFROST_FGT_F,
@@ -730,6 +731,7 @@ bi_cond_to_csel(enum bi_cond cond, bool *flip, bool *invert, nir_alu_type T)
         }
         case BI_COND_LE:
                 *flip = true;
+                /* fallthrough */
         case BI_COND_GE: {
                 const enum bifrost_csel_cond ops[] = {
                         BIFROST_FGE_F,
@@ -741,6 +743,7 @@ bi_cond_to_csel(enum bi_cond cond, bool *flip, bool *invert, nir_alu_type T)
         }
         case BI_COND_NE:
                 *invert = true;
+                /* fallthrough */
         case BI_COND_EQ: {
                 const enum bifrost_csel_cond ops[] = {
                         BIFROST_FEQ_F,