mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
freedreno: Quiet fallthrough warnings
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9061>
This commit is contained in:
parent
0d5fe24c9b
commit
8a54c4a335
4 changed files with 5 additions and 3 deletions
|
|
@ -74,6 +74,7 @@ static void set_need_emit(struct ir2_context *ctx, struct ir2_instr *instr)
|
|||
if (!instr->is_ssa && instr->reg == reg)
|
||||
set_need_emit(ctx, instr);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ setup_lrz(struct fd_resource *rsc)
|
|||
switch (rsc->base.nr_samples) {
|
||||
case 4:
|
||||
lrz_pitch *= 2;
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case 2:
|
||||
lrz_height *= 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ setup_lrz(struct fd_resource *rsc)
|
|||
switch (rsc->base.nr_samples) {
|
||||
case 4:
|
||||
width0 *= 2;
|
||||
/* fallthru */
|
||||
FALLTHROUGH;
|
||||
case 2:
|
||||
height0 *= 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include "pipe/p_format.h"
|
||||
#include "pipe/p_state.h"
|
||||
#include "util/compiler.h"
|
||||
#include "util/log.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/u_math.h"
|
||||
|
|
@ -333,7 +334,7 @@ fd_msaa_samples(unsigned samples)
|
|||
switch (samples) {
|
||||
default:
|
||||
debug_assert(0);
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case 0:
|
||||
case 1: return MSAA_ONE;
|
||||
case 2: return MSAA_TWO;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue