Commit 66f0ae20 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜
Browse files

pan/bi: Call Valhall backend passes on v9



These are required to lower the IR into something suitable for Valhall
packing.
Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa@collabora.com>
parent 989de901
Pipeline #370562 waiting for manual action with stages
......@@ -35,6 +35,7 @@
#include "disassemble.h"
#include "bifrost_compile.h"
#include "compiler.h"
#include "valhall/va_compiler.h"
#include "bi_quirks.h"
#include "bi_builder.h"
#include "bifrost_nir.h"
......@@ -3638,20 +3639,32 @@ bifrost_compile_shader_nir(nir_shader *nir,
bi_opt_mod_prop_forward(ctx);
bi_opt_mod_prop_backward(ctx);
bi_opt_dead_code_eliminate(ctx);
bi_opt_cse(ctx);
bi_opt_dead_code_eliminate(ctx);
if (ctx->arch >= 9) {
va_optimizer(ctx);
bi_foreach_instr_global_safe(ctx, I) {
va_lower_isel(I);
va_lower_constants(ctx, I);
bi_builder b = bi_init_builder(ctx, bi_before_instr(I));
va_repair_fau(&b, I);
}
}
bi_opt_cse(ctx);
bi_opt_dead_code_eliminate(ctx);
bi_foreach_block(ctx, block) {
bi_lower_branch(ctx, block);
}
if (bifrost_debug & BIFROST_DBG_SHADERS && !skip_internal)
bi_print_shader(ctx, stdout);
if (ctx->arch <= 8) {
bi_lower_fau(ctx);
}
/* Analyze before register allocation to avoid false dependencies. The
* skip bit is a function of only the data flow graph and is invariant
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment