llvmpipe: add missing fallthrough comments
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 05:24:41 +0000 (15:24 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 2 Jul 2020 02:11:30 +0000 (12:11 +1000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>

src/gallium/drivers/llvmpipe/lp_screen.c

index 1aa6e46a8215fe40d17ffd0d015b831821bc8ee2..54c4c676e790193c7d4efaa819ec8aa577d9fa1c 100644 (file)
@@ -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) {