tgsi: update fallthrough comments

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7747>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-11-24 11:38:18 +01:00
parent 842088667f
commit ff89a0afc6
3 changed files with 9 additions and 5 deletions
+3 -2
View File
@@ -58,6 +58,7 @@
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_util.h"
#include "tgsi_exec.h"
#include "util/compiler.h"
#include "util/half_float.h"
#include "util/u_memory.h"
#include "util/u_math.h"
@@ -2565,7 +2566,7 @@ exec_txf(struct tgsi_exec_machine *mach,
case TGSI_TEXTURE_SHADOW2D_ARRAY:
case TGSI_TEXTURE_2D_ARRAY_MSAA:
IFETCH(&r[2], 0, TGSI_CHAN_Z);
/* fallthrough */
FALLTHROUGH;
case TGSI_TEXTURE_2D:
case TGSI_TEXTURE_RECT:
case TGSI_TEXTURE_SHADOW1D_ARRAY:
@@ -2574,7 +2575,7 @@ exec_txf(struct tgsi_exec_machine *mach,
case TGSI_TEXTURE_1D_ARRAY:
case TGSI_TEXTURE_2D_MSAA:
IFETCH(&r[1], 0, TGSI_CHAN_Y);
/* fallthrough */
FALLTHROUGH;
case TGSI_TEXTURE_BUFFER:
case TGSI_TEXTURE_1D:
case TGSI_TEXTURE_SHADOW1D:
+3 -1
View File
@@ -25,6 +25,8 @@
#include "pipe/p_compiler.h"
#include "util/compiler.h"
/**
* Determine the semantic index that is used when the given varying is mapped
* to TGSI_SEMANTIC_GENERIC.
@@ -157,7 +159,7 @@ tgsi_get_gl_varying_semantic(gl_varying_slot attr,
*semantic_index = attr - VARYING_SLOT_TEX0;
break;
}
/* fall through */
FALLTHROUGH;
case VARYING_SLOT_VAR0:
default:
assert(attr >= VARYING_SLOT_VAR0 ||
+3 -2
View File
@@ -28,6 +28,7 @@
#include "tgsi/tgsi_scan.h"
#include "tgsi/tgsi_dump.h"
#include "util/compiler.h"
#include "util/u_debug.h"
#include "util/u_math.h"
@@ -1068,7 +1069,7 @@ transform_samp(struct tgsi_transform_context *tctx,
if (ctx->config->saturate_r & smask)
mask |= TGSI_WRITEMASK_Z;
pmask |= TGSI_WRITEMASK_Z;
/* fallthrough */
FALLTHROUGH;
case TGSI_TEXTURE_2D:
case TGSI_TEXTURE_2D_ARRAY:
@@ -1079,7 +1080,7 @@ transform_samp(struct tgsi_transform_context *tctx,
if (ctx->config->saturate_t & smask)
mask |= TGSI_WRITEMASK_Y;
pmask |= TGSI_WRITEMASK_Y;
/* fallthrough */
FALLTHROUGH;
case TGSI_TEXTURE_1D:
case TGSI_TEXTURE_1D_ARRAY: