mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
pan/bi: Move Bifrost specific C code to src/compiler/bifrost
The goal is to make files at the root of src/compiler/ apply to both Bifrost and Valhall, while ISA-specific code (e.g. instruction packing) code goes in compiler/bifrost/ or compiler/valhall/. This is what Valhall is already doing, the Bifrost specific stuff was just grandfathered in. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20455>
This commit is contained in:
parent
551c2aadd4
commit
980df9ede1
11 changed files with 10 additions and 10 deletions
|
|
@ -30,7 +30,7 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include "bifrost.h"
|
||||
#include "../bifrost.h"
|
||||
|
||||
void disassemble_bifrost(FILE *fp, uint8_t *code, size_t size, bool verbose);
|
||||
|
||||
|
|
@ -31,6 +31,7 @@
|
|||
#include "compiler/nir_types.h"
|
||||
#include "util/u_debug.h"
|
||||
|
||||
#include "bifrost/disassemble.h"
|
||||
#include "valhall/disassemble.h"
|
||||
#include "valhall/va_compiler.h"
|
||||
#include "bi_builder.h"
|
||||
|
|
@ -38,7 +39,6 @@
|
|||
#include "bifrost_compile.h"
|
||||
#include "bifrost_nir.h"
|
||||
#include "compiler.h"
|
||||
#include "disassemble.h"
|
||||
|
||||
/* clang-format off */
|
||||
static const struct debug_named_value bifrost_debug_options[] = {
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@
|
|||
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include "bifrost/disassemble.h"
|
||||
#include "util/macros.h"
|
||||
#include "valhall/disassemble.h"
|
||||
#include "disassemble.h"
|
||||
|
||||
unsigned gpu_id = 0x7212;
|
||||
int verbose = 0;
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ def disasm_op(name, op):
|
|||
return disasm_op_template.render(c_name = opname_to_c(name), body = body)
|
||||
|
||||
print('#include "util/macros.h"')
|
||||
print('#include "disassemble.h"')
|
||||
print('#include "bifrost/disassemble.h"')
|
||||
|
||||
states = expand_states(instructions)
|
||||
print('#define _BITS(bits, pos, width) (((bits) >> (pos)) & ((1 << (width)) - 1))')
|
||||
|
|
|
|||
|
|
@ -35,17 +35,17 @@ libpanfrost_bifrost_files = files(
|
|||
'bi_opt_dce.c',
|
||||
'bi_opt_cse.c',
|
||||
'bi_opt_push_ubo.c',
|
||||
'bi_opt_message_preload.c',
|
||||
'bi_opt_mod_props.c',
|
||||
'bi_opt_dual_tex.c',
|
||||
'bi_pressure_schedule.c',
|
||||
'bi_pack.c',
|
||||
'bi_ra.c',
|
||||
'bi_schedule.c',
|
||||
'bi_scoreboard.c',
|
||||
'bi_validate.c',
|
||||
'bir.c',
|
||||
'bifrost_compile.c',
|
||||
'bifrost/bi_opt_message_preload.c',
|
||||
'bifrost/bi_pack.c',
|
||||
'bifrost/bi_schedule.c',
|
||||
'bifrost/bi_scoreboard.c',
|
||||
'valhall/va_insert_flow.c',
|
||||
'valhall/va_lower_constants.c',
|
||||
'valhall/va_lower_isel.c',
|
||||
|
|
@ -135,7 +135,7 @@ bifrost_nir_algebraic_c = custom_target(
|
|||
|
||||
libpanfrost_bifrost_disasm = static_library(
|
||||
'panfrost_bifrost_disasm',
|
||||
['disassemble.c', 'bi_print_common.c', bifrost_gen_disasm_c],
|
||||
['bifrost/disassemble.c', 'bi_print_common.c', bifrost_gen_disasm_c],
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw],
|
||||
dependencies: [idep_nir],
|
||||
link_with: [libpanfrost_util],
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <genxml/gen_macros.h>
|
||||
|
||||
#include "compiler/disassemble.h"
|
||||
#include "compiler/bifrost/disassemble.h"
|
||||
#include "compiler/valhall/disassemble.h"
|
||||
#include "midgard/disassemble.h"
|
||||
#include "util/set.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue