pan/bi: Add dummy scheduler
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 7 Mar 2020 00:25:00 +0000 (19:25 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 7 Mar 2020 00:37:39 +0000 (00:37 +0000)
commitb329f8c750af96f9efb968045dcf03b0fad1b34e
tree7ab1991c9557b601d13c1f0fc607941b91744974
parent51e537c9fa4d10bc5b065a60095bf2d85080d3c5
pan/bi: Add dummy scheduler

Do the absolute simplest possible thing -- create a clause for every
instruction, and just pick whichever slot we can, nopping the other,
copying whatever constant we have whether it's used or not.

To be clear - this is not to be used in a production compiler. But this
lets actual bundles and clauses show up in the BIR, which unblocks work
on final code generation and packing (which can happen more or less in
parallel to NIR->BIR, optimization, register allocation, and writing an
actual scheduling).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
src/panfrost/Makefile.sources
src/panfrost/bifrost/bi_schedule.c [new file with mode: 0644]
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h
src/panfrost/bifrost/meson.build