Mesa (master): llvmpipe: add missing fallthrough comments

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 2 04:11:19 UTC 2020


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

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Wed Jul  1 15:24:41 2020 +1000

llvmpipe: add missing fallthrough comments

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>

---

 src/gallium/drivers/llvmpipe/lp_screen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 1aa6e46a821..54c4c676e79 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -424,6 +424,7 @@ llvmpipe_get_shader_param(struct pipe_screen *screen,
    case PIPE_SHADER_COMPUTE:
       if ((LP_DEBUG & DEBUG_CL) && param == PIPE_SHADER_CAP_SUPPORTED_IRS)
          return (1 << PIPE_SHADER_IR_TGSI) | (1 << PIPE_SHADER_IR_NIR) | (1 << PIPE_SHADER_IR_NIR_SERIALIZED);
+      /* fallthrough */
    case PIPE_SHADER_FRAGMENT:
       if (param == PIPE_SHADER_CAP_PREFERRED_IR) {
          if (lscreen->use_tgsi)
@@ -435,11 +436,13 @@ llvmpipe_get_shader_param(struct pipe_screen *screen,
       default:
          return gallivm_get_shader_param(param);
       }
+      /* fallthrough */
    case PIPE_SHADER_TESS_CTRL:
    case PIPE_SHADER_TESS_EVAL:
       /* Tessellation shader needs llvm coroutines support */
       if (!GALLIVM_HAVE_CORO || lscreen->use_tgsi)
          return 0;
+      /* fallthrough */
    case PIPE_SHADER_VERTEX:
    case PIPE_SHADER_GEOMETRY:
       if (param == PIPE_SHADER_CAP_PREFERRED_IR) {



More information about the mesa-commit mailing list