nir/ntt: update fallthrough comments
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 24 Nov 2020 10:30:08 +0000 (11:30 +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/nir/nir_to_tgsi_info.c

index eab7908..d548603 100644 (file)
@@ -351,7 +351,7 @@ static void scan_instruction(const struct nir_shader *nir,
                if (glsl_base_type_is_integer(base_type))
                   break;
 
-               /* fall-through */
+               FALLTHROUGH;
             case INTERP_MODE_SMOOTH:
                if (var->data.sample)
                   info->uses_persp_sample = true;
@@ -551,7 +551,7 @@ void nir_tgsi_scan_shader(const struct nir_shader *nir,
                info->input_interpolate[i] = TGSI_INTERPOLATE_COLOR;
                break;
             }
-            /* fall-through */
+            FALLTHROUGH;
 
          case INTERP_MODE_SMOOTH:
             assert(!glsl_base_type_is_integer(base_type));