From b329f8c750af96f9efb968045dcf03b0fad1b34e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 6 Mar 2020 19:25:00 -0500 Subject: 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 Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/panfrost/bifrost/bifrost_compile.c') 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 @@ -606,6 +606,8 @@ bifrost_compile_shader_nir(nir_shader *nir, bifrost_program *program, unsigned p break; /* TODO: Multi-function shaders */ } + bi_print_shader(ctx, stdout); + bi_schedule(ctx); bi_print_shader(ctx, stdout); ralloc_free(ctx); -- cgit v1.2.3