pan/midgard: Add mir_choose_instruction stub
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 18 Sep 2019 12:26:30 +0000 (08:26 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 30 Sep 2019 12:40:13 +0000 (08:40 -0400)
commit826fd7308bba1fcd4fd4c94c798f4f45a741e657
tree8de238c09aa2ff2281c902b94367241b472bbfd2
parentf48038b588df726cd34f5d15e999498310da7432
pan/midgard: Add mir_choose_instruction stub

In the future, this routine will implement the core scheduling logic to
decide which instruction out of the worklist will be scheduled next, in
a way that minimizes cycle count and register pressure.

In the present, we are more interested in replicating in-order
scheduling with the much-more-powerful out-of-order model. So rather
than discriminating by a register pressure estimate, we simply choose
the latest possible instruction in the worklist.

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