summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2018-05-01 17:27:08 -0700
committerKenneth Graunke <kenneth@whitecape.org>2018-05-02 09:27:56 -0700
commit7c22c150c40b3e2da892604d21c749aaec0b3cfd (patch)
tree441b1953cdf4be16f52dcf2bb3f31b90b037df16 /src/intel
parent5c049718318bfd9957aaa8f232d40286e101f02f (diff)
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>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/Makefile.sources3
-rw-r--r--src/intel/Makefile.tools.am8
-rw-r--r--src/intel/common/gen_batch_decoder.c (renamed from src/intel/tools/gen_batch_decoder.c)0
-rw-r--r--src/intel/common/gen_disasm.c (renamed from src/intel/tools/disasm.c)0
-rw-r--r--src/intel/common/gen_disasm.h (renamed from src/intel/tools/gen_disasm.h)0
-rw-r--r--src/intel/common/meson.build3
-rw-r--r--src/intel/tools/meson.build6
7 files changed, 9 insertions, 11 deletions
diff --git a/src/intel/Makefile.sources b/src/intel/Makefile.sources
index 91c71a8dfaf..1adf6f990c6 100644
--- a/src/intel/Makefile.sources
+++ b/src/intel/Makefile.sources
@@ -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 \
diff --git a/src/intel/Makefile.tools.am b/src/intel/Makefile.tools.am
index a8685c24e1c..b00cc8cc2cb 100644
--- a/src/intel/Makefile.tools.am
+++ b/src/intel/Makefile.tools.am
@@ -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 \
diff --git a/src/intel/tools/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index a0d6dbd3e58..a0d6dbd3e58 100644
--- a/src/intel/tools/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
diff --git a/src/intel/tools/disasm.c b/src/intel/common/gen_disasm.c
index 1de20f576d4..1de20f576d4 100644
--- a/src/intel/tools/disasm.c
+++ b/src/intel/common/gen_disasm.c
diff --git a/src/intel/tools/gen_disasm.h b/src/intel/common/gen_disasm.h
index c8c18b2cf03..c8c18b2cf03 100644
--- a/src/intel/tools/gen_disasm.h
+++ b/src/intel/common/gen_disasm.h
diff --git a/src/intel/common/meson.build b/src/intel/common/meson.build
index 5e0394a5b86..ebf69c05370 100644
--- a/src/intel/common/meson.build
+++ b/src/intel/common/meson.build
@@ -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',
diff --git a/src/intel/tools/meson.build b/src/intel/tools/meson.build
index e19de5af882..0be530546c3 100644
--- a/src/intel/tools/meson.build
+++ b/src/intel/tools/meson.build
@@ -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],