radeon: add missing fallthrough comments
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 05:50:11 +0000 (15:50 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 23:52:52 +0000 (23:52 +0000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>

src/mesa/drivers/dri/radeon/radeon_maos_verts.c

index 51a85d17e45f4ecf68546f83ea6a7446a1e70ab1..fff6b8d2d059d8a1c6afefc6ffe4ac880888a493 100644 (file)
@@ -405,12 +405,15 @@ void radeonEmitArrays( struct gl_context *ctx, GLuint inputs )
       switch (VB->AttribPtr[_TNL_ATTRIB_POS]->size) {
       case 1:
            _mesa_vector4f_clean_elem(&rmesa->tcl.ObjClean, VB->Count, 1);
+           /* fallthrough */
       case 2:
            _mesa_vector4f_clean_elem(&rmesa->tcl.ObjClean, VB->Count, 2);
+           /* fallthrough */
       case 3:
         if (setup_tab[i].vertex_format & RADEON_CP_VC_FRMT_W0) {
            _mesa_vector4f_clean_elem(&rmesa->tcl.ObjClean, VB->Count, 3);
         }
+        /* fallthrough */
       case 4:
       default:
         break;