tree-wide: replace MAYBE_UNUSED with ASSERTED
Suggested-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -652,7 +652,7 @@ v3d_spec_load(const struct v3d_device_info *devinfo)
|
||||
void *buf;
|
||||
uint8_t *text_data = NULL;
|
||||
uint32_t text_offset = 0, text_length = 0;
|
||||
MAYBE_UNUSED uint32_t total_length;
|
||||
ASSERTED uint32_t total_length;
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(genxml_files_table); i++) {
|
||||
if (i != 0) {
|
||||
|
||||
@@ -944,7 +944,7 @@ ntq_emit_alu(struct v3d_compile *c, nir_alu_instr *instr)
|
||||
case nir_op_sge:
|
||||
case nir_op_slt: {
|
||||
enum v3d_qpu_cond cond;
|
||||
MAYBE_UNUSED bool ok = ntq_emit_comparison(c, instr, &cond);
|
||||
ASSERTED bool ok = ntq_emit_comparison(c, instr, &cond);
|
||||
assert(ok);
|
||||
result = vir_MOV(c, vir_SEL(c, cond,
|
||||
vir_uniform_f(c, 1.0),
|
||||
@@ -965,7 +965,7 @@ ntq_emit_alu(struct v3d_compile *c, nir_alu_instr *instr)
|
||||
case nir_op_ilt32:
|
||||
case nir_op_ult32: {
|
||||
enum v3d_qpu_cond cond;
|
||||
MAYBE_UNUSED bool ok = ntq_emit_comparison(c, instr, &cond);
|
||||
ASSERTED bool ok = ntq_emit_comparison(c, instr, &cond);
|
||||
assert(ok);
|
||||
result = vir_MOV(c, vir_SEL(c, cond,
|
||||
vir_uniform_ui(c, ~0),
|
||||
|
||||
@@ -333,7 +333,7 @@ static bool
|
||||
reads_uniform(const struct v3d_device_info *devinfo, uint64_t instruction)
|
||||
{
|
||||
struct v3d_qpu_instr qpu;
|
||||
MAYBE_UNUSED bool ok = v3d_qpu_instr_unpack(devinfo, instruction, &qpu);
|
||||
ASSERTED bool ok = v3d_qpu_instr_unpack(devinfo, instruction, &qpu);
|
||||
assert(ok);
|
||||
|
||||
if (qpu.sig.ldunif ||
|
||||
|
||||
@@ -64,7 +64,7 @@ v3d_qpu_disasm_raddr(struct disasm_state *disasm,
|
||||
} else if (mux == V3D_QPU_MUX_B) {
|
||||
if (instr->sig.small_imm) {
|
||||
uint32_t val;
|
||||
MAYBE_UNUSED bool ok =
|
||||
ASSERTED bool ok =
|
||||
v3d_qpu_small_imm_unpack(disasm->devinfo,
|
||||
instr->raddr_b,
|
||||
&val);
|
||||
|
||||
Reference in New Issue
Block a user