pan/midgard: Add flatten_mir helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 31 Aug 2019 18:08:39 +0000 (11:08 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 30 Sep 2019 12:40:13 +0000 (08:40 -0400)
commitadda411263217e86345f039aef730665c73732ea
treefb1991e5bbbe866e300978b63a7094049210318b
parent0ecfcbf46225bfb14f92a515ca2140ad2cbc4646
pan/midgard: Add flatten_mir helper

We would like to flatten a linked list of midgard_instructions into an
array of midgard_instruction pointers on the heap.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_schedule.c