freedreno/ir3: use standard list implementation
authorRob Clark <robclark@freedesktop.org>
Thu, 30 Apr 2015 15:38:43 +0000 (11:38 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 21 Jun 2015 11:53:09 +0000 (07:53 -0400)
commitadf1659ff5f07d907eca552be3b566e408c8601e
tree4ff28e1f2e21d41d29bfd36c56828e83497ac9c8
parent67d994c6761e09205dbc9a0515c510fc9dde02c7
freedreno/ir3: use standard list implementation

Use standard list_head double-linked list and related iterators,
helpers, etc, rather than weird combo of instruction array and next
pointers depending on stage.  Now block has an instrs_list.  In
certain stages where we want to remove and re-add to the blocks list
we just use list_replace() to copy the list to a new list_head.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3.c
src/gallium/drivers/freedreno/ir3/ir3.h
src/gallium/drivers/freedreno/ir3/ir3_cp.c
src/gallium/drivers/freedreno/ir3/ir3_depth.c
src/gallium/drivers/freedreno/ir3/ir3_legalize.c
src/gallium/drivers/freedreno/ir3/ir3_print.c
src/gallium/drivers/freedreno/ir3/ir3_ra.c
src/gallium/drivers/freedreno/ir3/ir3_sched.c