intel: Move batch decoder/disassembler from tools/ to common/
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 00:27:08 +0000 (17:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 16:27:56 +0000 (09:27 -0700)
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>
src/intel/Makefile.sources
src/intel/Makefile.tools.am
src/intel/common/gen_batch_decoder.c [moved from src/intel/tools/gen_batch_decoder.c with 100% similarity]
src/intel/common/gen_disasm.c [moved from src/intel/tools/disasm.c with 100% similarity]
src/intel/common/gen_disasm.h [moved from src/intel/tools/gen_disasm.h with 100% similarity]
src/intel/common/meson.build
src/intel/tools/meson.build

index 91c71a8..1adf6f9 100644 (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 \
index a8685c2..b00cc8c 100644 (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 \
index 5e0394a..ebf69c0 100644 (file)
 
 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',
index e19de5a..0be5305 100644 (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],