amd/ac: 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:
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "sid.h"
|
||||
#include "sid_tables.h"
|
||||
#include "util/compiler.h"
|
||||
#include "util/memstream.h"
|
||||
#include "util/u_math.h"
|
||||
#include "util/u_memory.h"
|
||||
@@ -511,7 +512,7 @@ static void ac_do_parse_ib(FILE *f, struct ac_ib_parser *ib)
|
||||
fprintf(f, COLOR_GREEN "NOP (type 2)" COLOR_RESET "\n");
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
FALLTHROUGH;
|
||||
default:
|
||||
fprintf(f, "Unknown packet type %i\n", type);
|
||||
break;
|
||||
|
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "ac_binary.h"
|
||||
#include "ac_gpu_info.h"
|
||||
#include "util/compiler.h"
|
||||
#include "util/u_dynarray.h"
|
||||
#include "util/u_math.h"
|
||||
|
||||
@@ -687,6 +688,7 @@ static bool apply_relocs(const struct ac_rtld_upload_info *u, unsigned part_idx,
|
||||
switch (r_type) {
|
||||
case R_AMDGPU_ABS32:
|
||||
assert((uint32_t)abs == abs);
|
||||
FALLTHROUGH;
|
||||
case R_AMDGPU_ABS32_LO:
|
||||
*(uint32_t *)dst_ptr = util_cpu_to_le32(abs);
|
||||
break;
|
||||
@@ -698,6 +700,7 @@ static bool apply_relocs(const struct ac_rtld_upload_info *u, unsigned part_idx,
|
||||
break;
|
||||
case R_AMDGPU_REL32:
|
||||
assert((int64_t)(int32_t)(abs - va) == (int64_t)(abs - va));
|
||||
FALLTHROUGH;
|
||||
case R_AMDGPU_REL32_LO:
|
||||
*(uint32_t *)dst_ptr = util_cpu_to_le32(abs - va);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user