mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
pan/bi: Wire Valhall disassembler into compiler
Useful when we grow Valhall support (soon!) Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15204>
This commit is contained in:
parent
31e991d801
commit
ec9c1f8fa6
1 changed files with 11 additions and 2 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include "util/u_debug.h"
|
||||
|
||||
#include "disassemble.h"
|
||||
#include "valhall/disassemble.h"
|
||||
#include "bifrost_compile.h"
|
||||
#include "compiler.h"
|
||||
#include "bi_quirks.h"
|
||||
|
|
@ -4083,8 +4084,16 @@ bi_compile_variant_nir(nir_shader *nir,
|
|||
}
|
||||
|
||||
if (bifrost_debug & BIFROST_DBG_SHADERS && !skip_internal) {
|
||||
disassemble_bifrost(stdout, binary->data + offset, binary->size - offset,
|
||||
bifrost_debug & BIFROST_DBG_VERBOSE);
|
||||
if (ctx->arch <= 8) {
|
||||
disassemble_bifrost(stdout, binary->data + offset,
|
||||
binary->size - offset,
|
||||
bifrost_debug & BIFROST_DBG_VERBOSE);
|
||||
} else {
|
||||
disassemble_valhall(stdout, binary->data + offset,
|
||||
binary->size - offset,
|
||||
bifrost_debug & BIFROST_DBG_VERBOSE);
|
||||
}
|
||||
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue