Skip to content

Commit d186c73

Browse files
committed
Change location of creating draw_state variable in attempt to pass cases.
1 parent 87acb58 commit d186c73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/route/route_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ vtr::Matrix<float> calculate_routing_usage(t_rr_type rr_type, bool is_flat, bool
2626
}
2727
}
2828
}
29-
t_draw_state* draw_state = get_draw_state_vars();
29+
3030
//Record number of used resources in each x/y channel
3131
for (RRNodeId rr_node : rr_nodes) {
3232
if (!is_print) {
33+
t_draw_state* draw_state = get_draw_state_vars();
3334
int layer_num = rr_graph.node_layer(rr_node);
3435
if (!draw_state->draw_layer_display[layer_num].visible)
3536
continue; // don't count usage if layer is not visible

0 commit comments

Comments
 (0)