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 51eb9b0dbf924201f654fe8705e6817b569bac14..b750d27f9496e07974079367d6bc8488a48dd465 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 486f55d7bec23169a9022950a68c4b40eaa6ac33..23c55fb65ead6dd42f7147a45d3b8062c0a2cb8a 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) {