diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-06 19:25:00 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-07 00:37:39 +0000 |
commit | b329f8c750af96f9efb968045dcf03b0fad1b34e (patch) | |
tree | 7ab1991c9557b601d13c1f0fc607941b91744974 /src/panfrost/bifrost/bifrost_compile.c | |
parent | 51e537c9fa4d10bc5b065a60095bf2d85080d3c5 (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
Diffstat (limited to 'src/panfrost/bifrost/bifrost_compile.c')
-rw-r--r-- | src/panfrost/bifrost/bifrost_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index a0b9d03b1ee..1c3a0f09db3 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -607,6 +607,8 @@ bifrost_compile_shader_nir(nir_shader *nir, bifrost_program *program, unsigned p } bi_print_shader(ctx, stdout); + bi_schedule(ctx); + bi_print_shader(ctx, stdout); ralloc_free(ctx); } |