intel/compiler: add and fix up fallthrough comments for gcc warnings
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 06:30:01 +0000 (16:30 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 2 Jul 2020 02:11:30 +0000 (12:11 +1000)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>

src/intel/compiler/brw_compile_sf.c
src/intel/compiler/brw_disasm.c

index 51eb9b0..b750d27 100644 (file)
@@ -167,9 +167,9 @@ static void do_twoside_color( struct brw_sf_compile *c )
    brw_IF(p, BRW_EXECUTE_4);
    {
       switch (c->nr_verts) {
-      case 3: copy_bfc(c, c->vert[2]);
-      case 2: copy_bfc(c, c->vert[1]);
-      case 1: copy_bfc(c, c->vert[0]);
+      case 3: copy_bfc(c, c->vert[2]); /* fallthrough */
+      case 2: copy_bfc(c, c->vert[1]); /* fallthrough */
+      case 1: copy_bfc(c, c->vert[0]); /* fallthrough */
       }
    }
    brw_ENDIF(p);
index 486f55d..23c55fb 100644 (file)
@@ -2064,8 +2064,8 @@ brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo,
                format(file, ")");
                break;
             }
-            /* FALLTHROUGH */
          }
+         /* FALLTHROUGH */
 
          case GEN7_SFID_PIXEL_INTERPOLATOR:
             if (devinfo->gen >= 7) {