intel/compiler: add and fix up fallthrough comments for gcc warnings
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
This commit is contained in:
parent
512db7ec78
commit
1a8f918050
|
@ -167,9 +167,9 @@ static void do_twoside_color( struct brw_sf_compile *c )
|
||||||
brw_IF(p, BRW_EXECUTE_4);
|
brw_IF(p, BRW_EXECUTE_4);
|
||||||
{
|
{
|
||||||
switch (c->nr_verts) {
|
switch (c->nr_verts) {
|
||||||
case 3: copy_bfc(c, c->vert[2]);
|
case 3: copy_bfc(c, c->vert[2]); /* fallthrough */
|
||||||
case 2: copy_bfc(c, c->vert[1]);
|
case 2: copy_bfc(c, c->vert[1]); /* fallthrough */
|
||||||
case 1: copy_bfc(c, c->vert[0]);
|
case 1: copy_bfc(c, c->vert[0]); /* fallthrough */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
brw_ENDIF(p);
|
brw_ENDIF(p);
|
||||||
|
|
|
@ -2064,8 +2064,8 @@ brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo,
|
||||||
format(file, ")");
|
format(file, ")");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* FALLTHROUGH */
|
|
||||||
}
|
}
|
||||||
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
case GEN7_SFID_PIXEL_INTERPOLATOR:
|
case GEN7_SFID_PIXEL_INTERPOLATOR:
|
||||||
if (devinfo->gen >= 7) {
|
if (devinfo->gen >= 7) {
|
||||||
|
|
Loading…
Reference in New Issue