Mesa (master): gallium/util: update fallthrough comments

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 1 09:34:58 UTC 2020


Module: Mesa
Branch: master
Commit: c27563d64a947ab00c1a9cd0f9cc1df3e0836511
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c27563d64a947ab00c1a9cd0f9cc1df3e0836511

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Tue Nov 24 11:29:09 2020 +0100

gallium/util: update fallthrough comments

Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7747>

---

 src/gallium/auxiliary/util/u_blitter.c         | 2 +-
 src/gallium/auxiliary/util/u_transfer_helper.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 0019eb13730..60c4144c626 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -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;
diff --git a/src/gallium/auxiliary/util/u_transfer_helper.c b/src/gallium/auxiliary/util/u_transfer_helper.c
index 2d9822f11ee..47898e0bd92 100644
--- a/src/gallium/auxiliary/util/u_transfer_helper.c
+++ b/src/gallium/auxiliary/util/u_transfer_helper.c
@@ -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) +



More information about the mesa-commit mailing list