i965: add and fix fallthrough comments

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
This commit is contained in:
Timothy Arceri 2020-07-01 15:18:02 +10:00
parent 8da810a7fb
commit de4004f8ba
4 changed files with 6 additions and 6 deletions

View file

@ -312,7 +312,7 @@ static uint8_t get_wa_flags(const struct gl_vertex_format *glformat)
case GL_INT_2_10_10_10_REV:
wa_flags |= BRW_ATTRIB_WA_SIGN;
/* fallthough */
/* fallthrough */
case GL_UNSIGNED_INT_2_10_10_10_REV:
if (glformat->Format == GL_BGRA)

View file

@ -348,7 +348,7 @@ brw_meta_convert_fast_clear_color(const struct brw_context *brw,
switch (_mesa_get_format_base_format(mt->format)) {
case GL_INTENSITY:
override_color.u32[3] = override_color.u32[0];
/* flow through */
/* fallthrough */
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
override_color.u32[1] = override_color.u32[0];

View file

@ -253,8 +253,8 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx,
key->swizzles[i] |= SWIZZLE_ONE << (3 * i);
}
}
/* fallthrough */
}
/* fallthrough */
case GL_RG32F:
/* The channel select for green doesn't work - we have to
* request blue. Haswell can use SCS for this, but Ivybridge

View file

@ -671,9 +671,9 @@ genX(emit_vertices)(struct brw_context *brw)
upload_format_size(upload_format) : glformat->Size;
switch (size) {
case 0: comp0 = VFCOMP_STORE_0;
case 1: comp1 = VFCOMP_STORE_0;
case 2: comp2 = VFCOMP_STORE_0;
case 0: comp0 = VFCOMP_STORE_0; /* fallthrough */
case 1: comp1 = VFCOMP_STORE_0; /* fallthrough */
case 2: comp2 = VFCOMP_STORE_0; /* fallthrough */
case 3:
if (GEN_GEN >= 8 && glformat->Doubles) {
comp3 = VFCOMP_STORE_0;