gallium/util: update fallthrough comments
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 24 Nov 2020 10:29:09 +0000 (11:29 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 1 Dec 2020 09:04:41 +0000 (10:04 +0100)
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7747>

src/gallium/auxiliary/util/u_blitter.c
src/gallium/auxiliary/util/u_transfer_helper.c

index 0019eb1..60c4144 100644 (file)
@@ -1393,7 +1393,7 @@ void util_blitter_draw_rectangle(struct blitter_context *blitter,
             ctx->vertices[i][1][2] = attrib->texcoord.z;
             ctx->vertices[i][1][3] = attrib->texcoord.w;
          }
-         /* fall through */
+         FALLTHROUGH;
       case UTIL_BLITTER_ATTRIB_TEXCOORD_XY:
          set_texcoords_in_vertices(attrib, &ctx->vertices[0][1][0], 8);
          break;
index 2d9822f..47898e0 100644 (file)
@@ -402,7 +402,7 @@ flush_region(struct pipe_context *pctx, struct pipe_transfer *ptrans,
                                                       src,
                                                       ptrans->stride,
                                                       width, height);
-      /* fallthru */
+      FALLTHROUGH;
    case PIPE_FORMAT_X32_S8X24_UINT:
       dst = (uint8_t *)trans->ptr2 +
             (box->y * trans->trans2->stride) +
@@ -419,7 +419,7 @@ flush_region(struct pipe_context *pctx, struct pipe_transfer *ptrans,
       util_format_z32_unorm_unpack_z_32unorm(dst, trans->trans->stride,
                                              src, ptrans->stride,
                                              width, height);
-      /* fallthru */
+      FALLTHROUGH;
    case PIPE_FORMAT_X24S8_UINT:
       dst = (uint8_t *)trans->ptr2 +
             (box->y * trans->trans2->stride) +