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:
@@ -175,8 +175,8 @@ validate_ordering(YYLTYPE *loc,
|
||||
}
|
||||
|
||||
static bool
|
||||
validate_point_mode(MAYBE_UNUSED const ast_type_qualifier &qualifier,
|
||||
MAYBE_UNUSED const ast_type_qualifier &new_qualifier)
|
||||
validate_point_mode(ASSERTED const ast_type_qualifier &qualifier,
|
||||
ASSERTED const ast_type_qualifier &new_qualifier)
|
||||
{
|
||||
/* Point mode can only be true if the flag is set. */
|
||||
assert (!qualifier.flags.q.point_mode || !new_qualifier.flags.q.point_mode
|
||||
|
@@ -1052,7 +1052,7 @@ ir_validate::validate_ir(ir_instruction *ir, void *data)
|
||||
_mesa_set_add(ir_set, ir);
|
||||
}
|
||||
|
||||
MAYBE_UNUSED static void
|
||||
ASSERTED static void
|
||||
check_node_type(ir_instruction *ir, void *data)
|
||||
{
|
||||
(void) data;
|
||||
|
@@ -233,7 +233,7 @@ lower_buffer_access::is_dereferenced_thing_row_major(const ir_rvalue *deref)
|
||||
* layouts at HIR generation time, but we don't do that for shared
|
||||
* variables, which are always column-major
|
||||
*/
|
||||
MAYBE_UNUSED ir_variable *var = deref->variable_referenced();
|
||||
ASSERTED ir_variable *var = deref->variable_referenced();
|
||||
assert((var->is_in_buffer_block() && !matrix) ||
|
||||
var->data.mode == ir_var_shader_shared);
|
||||
return false;
|
||||
|
@@ -28,7 +28,7 @@
|
||||
static bool
|
||||
assert_ssa_def_is_not_int(nir_ssa_def *def, void *arg)
|
||||
{
|
||||
MAYBE_UNUSED BITSET_WORD *int_types = arg;
|
||||
ASSERTED BITSET_WORD *int_types = arg;
|
||||
assert(!BITSET_TEST(int_types, def->index));
|
||||
return true;
|
||||
}
|
||||
|
@@ -684,7 +684,7 @@ write_phi(write_ctx *ctx, const nir_phi_instr *phi)
|
||||
nir_foreach_phi_src(src, phi) {
|
||||
assert(src->src.is_ssa);
|
||||
size_t blob_offset = blob_reserve_intptr(ctx->blob);
|
||||
MAYBE_UNUSED size_t blob_offset2 = blob_reserve_intptr(ctx->blob);
|
||||
ASSERTED size_t blob_offset2 = blob_reserve_intptr(ctx->blob);
|
||||
assert(blob_offset + sizeof(uintptr_t) == blob_offset2);
|
||||
write_phi_fixup fixup = {
|
||||
.blob_offset = blob_offset,
|
||||
|
Reference in New Issue
Block a user