Browse Source

intel: Move batch decoder/disassembler from tools/ to common/

Making these part of libintel_common allows us to use them in the DRI
driver.  The standalone tool binaries already link against the common
library, too, so it's no harder for them.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
tags/18.2-branchpoint
Kenneth Graunke 7 years ago
parent
commit
7c22c150c4

+ 3
- 0
src/intel/Makefile.sources View File

@@ -9,10 +9,13 @@ BLORP_FILES = \

COMMON_FILES = \
common/gen_clflush.h \
common/gen_batch_decoder.c \
common/gen_debug.c \
common/gen_debug.h \
common/gen_decoder.c \
common/gen_decoder.h \
common/gen_disasm.c \
common/gen_disasm.h \
common/gen_defines.h \
common/gen_l3_config.c \
common/gen_l3_config.h \

+ 1
- 7
src/intel/Makefile.tools.am View File

@@ -25,9 +25,6 @@ noinst_PROGRAMS += \

tools_aubinator_SOURCES = \
tools/aubinator.c \
tools/disasm.c \
tools/gen_batch_decoder.c \
tools/gen_disasm.h \
tools/intel_aub.h

tools_aubinator_CFLAGS = \
@@ -48,10 +45,7 @@ tools_aubinator_LDADD = \


tools_aubinator_error_decode_SOURCES = \
tools/aubinator_error_decode.c \
tools/disasm.c \
tools/gen_batch_decoder.c \
tools/gen_disasm.h
tools/aubinator_error_decode.c

tools_aubinator_error_decode_LDADD = \
common/libintel_common.la \

src/intel/tools/gen_batch_decoder.c → src/intel/common/gen_batch_decoder.c View File


src/intel/tools/disasm.c → src/intel/common/gen_disasm.c View File


src/intel/tools/gen_disasm.h → src/intel/common/gen_disasm.h View File


+ 3
- 0
src/intel/common/meson.build View File

@@ -22,10 +22,13 @@

files_libintel_common = files(
'gen_clflush.h',
'gen_batch_decoder.c',
'gen_debug.c',
'gen_debug.h',
'gen_decoder.c',
'gen_decoder.h',
'gen_disasm.c',
'gen_disasm.h',
'gen_l3_config.c',
'gen_l3_config.h',
'gen_urb_config.c',

+ 2
- 4
src/intel/tools/meson.build View File

@@ -20,8 +20,7 @@

aubinator = executable(
'aubinator',
files('aubinator.c', 'disasm.c', 'gen_batch_decoder.c',
'gen_disasm.h', 'intel_aub.h'),
files('aubinator.c', 'intel_aub.h'),
dependencies : [dep_expat, dep_zlib, dep_dl, dep_thread, dep_m],
include_directories : [inc_common, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
@@ -32,8 +31,7 @@ aubinator = executable(

aubinator_error_decode = executable(
'aubinator_error_decode',
files('aubinator_error_decode.c', 'disasm.c', 'gen_disasm.h',
'gen_batch_decoder.c'),
files('aubinator_error_decode.c'),
dependencies : [dep_zlib, dep_thread],
include_directories : [inc_common, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],

Loading…
Cancel
Save