diff options
author | Eric Anholt <[email protected]> | 2019-02-28 10:42:05 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-03-11 13:14:32 -0700 |
commit | 33886474d646134f9784771a0ded3510a0180515 (patch) | |
tree | bb7eef429d78ed88219b3af1a6bd500184d38082 /src/gallium/drivers/vc4/vc4_qir_schedule.c | |
parent | d6d83b34ee3486d2154c1c929900d329448cb6c0 (diff) |
v3d: Use the DAG datastructure for QPU instruction scheduling.
Just a small code reduction from shared infrastructure.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir_schedule.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir_schedule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir_schedule.c b/src/gallium/drivers/vc4/vc4_qir_schedule.c index 28f65a9af93..cbd993ceb32 100644 --- a/src/gallium/drivers/vc4/vc4_qir_schedule.c +++ b/src/gallium/drivers/vc4/vc4_qir_schedule.c @@ -536,9 +536,9 @@ dump_state(struct vc4_compile *c, struct schedule_state *state) fprintf(stderr, " (%d cost)\n", get_register_pressure_cost(state, n->inst)); - util_dynarray_foreach(&n->dag.children, struct schedule_node *, - childp) { - struct schedule_node *child = *childp; + util_dynarray_foreach(&n->dag.edges, struct dag_edge, edge) { + struct schedule_node *child = + (struct schedule_node *)edge->child; fprintf(stderr, " - "); qir_dump_inst(c, child->inst); fprintf(stderr, " (%d parents)\n", |