summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-19 12:47:19 +0100
committerEric Engestrom <[email protected]>2019-07-31 09:41:05 +0100
commitabc226cf41574454c79477c217e60e8ff1fddfad (patch)
tree4c01a31ebe12a2a03bef6c7902a4d0ca400110ce /src/gallium/drivers/lima
parentab9c76769ad070490434aa7104d11958e1fc49d4 (diff)
tree-wide: replace MAYBE_UNUSED with ASSERTED
Suggested-by: Jason Ekstrand <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r--src/gallium/drivers/lima/ir/gp/scheduler.c6
-rw-r--r--src/gallium/drivers/lima/ir/pp/node_to_instr.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/lima/ir/gp/scheduler.c b/src/gallium/drivers/lima/ir/gp/scheduler.c
index 1a727aebc92..9900ceaa041 100644
--- a/src/gallium/drivers/lima/ir/gp/scheduler.c
+++ b/src/gallium/drivers/lima/ir/gp/scheduler.c
@@ -912,7 +912,7 @@ static void spill_node(sched_ctx *ctx, gpir_node *node, gpir_store_node *store)
gpir_node_add_dep(&load->node, &store->node, GPIR_DEP_READ_AFTER_WRITE);
gpir_debug("spilling use %d of node %d to load node %d\n",
use->index, node->index, load->node.index);
- MAYBE_UNUSED bool result = _try_place_node(ctx, use->sched.instr, &load->node);
+ ASSERTED bool result = _try_place_node(ctx, use->sched.instr, &load->node);
assert(result);
}
}
@@ -1303,7 +1303,7 @@ static bool try_node(sched_ctx *ctx)
if (best_node) {
gpir_debug("scheduling %d (score = %d)%s\n", best_node->index,
best_score, best_node->sched.max_node ? " (max)" : "");
- MAYBE_UNUSED int score = schedule_try_node(ctx, best_node, false);
+ ASSERTED int score = schedule_try_node(ctx, best_node, false);
assert(score != INT_MIN);
return true;
}
@@ -1323,7 +1323,7 @@ static void place_move(sched_ctx *ctx, gpir_node *node)
gpir_node_replace_child(succ, move, node);
}
}
- MAYBE_UNUSED int score = schedule_try_node(ctx, move, false);
+ ASSERTED int score = schedule_try_node(ctx, move, false);
assert(score != INT_MIN);
}
diff --git a/src/gallium/drivers/lima/ir/pp/node_to_instr.c b/src/gallium/drivers/lima/ir/pp/node_to_instr.c
index fc1671985e3..c5f55472f78 100644
--- a/src/gallium/drivers/lima/ir/pp/node_to_instr.c
+++ b/src/gallium/drivers/lima/ir/pp/node_to_instr.c
@@ -123,7 +123,7 @@ static bool insert_to_each_succ_instr(ppir_block *block, ppir_node *node)
if (!create_new_instr(block, move))
return false;
- MAYBE_UNUSED bool insert_result =
+ ASSERTED bool insert_result =
ppir_instr_insert_node(move->instr, node);
assert(insert_result);