[Mesa-dev] [PATCH 1/3] intel: Move batch decoder/disassembler from tools/ to common/
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Wed May 2 10:56:33 UTC 2018
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
On 02/05/18 06:50, Kenneth Graunke wrote:
> 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.
> ---
> src/intel/Makefile.sources | 3 +++
> src/intel/Makefile.tools.am | 8 +-------
> src/intel/{tools => common}/gen_batch_decoder.c | 0
> src/intel/{tools/disasm.c => common/gen_disasm.c} | 0
> src/intel/{tools => common}/gen_disasm.h | 0
> src/intel/common/meson.build | 3 +++
> src/intel/tools/meson.build | 6 ++----
> 7 files changed, 9 insertions(+), 11 deletions(-)
> rename src/intel/{tools => common}/gen_batch_decoder.c (100%)
> rename src/intel/{tools/disasm.c => common/gen_disasm.c} (100%)
> rename src/intel/{tools => common}/gen_disasm.h (100%)
>
> 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
> similarity index 100%
> rename from src/intel/tools/gen_batch_decoder.c
> rename to src/intel/common/gen_batch_decoder.c
> diff --git a/src/intel/tools/disasm.c b/src/intel/common/gen_disasm.c
> similarity index 100%
> rename from src/intel/tools/disasm.c
> rename to src/intel/common/gen_disasm.c
> diff --git a/src/intel/tools/gen_disasm.h b/src/intel/common/gen_disasm.h
> similarity index 100%
> rename from src/intel/tools/gen_disasm.h
> rename to 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],
More information about the mesa-dev
mailing list