summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-04-01 20:34:40 -0400
committerMarek Olšák <[email protected]>2018-04-05 15:34:58 -0400
commit38faac43e32d58ce7b42d35e11146208f2c7b4e5 (patch)
tree3206529216fc7823fac48f87fd90f1d856422c86 /src
parentf9323ddbb9de667475d12f7a9183a855f3f33ac8 (diff)
radeonsi: don't build libradeon.la separately
for better parallelism Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/Makefile.am5
-rw-r--r--src/gallium/drivers/radeon/Makefile.am29
-rw-r--r--src/gallium/drivers/radeon/Makefile.sources21
-rw-r--r--src/gallium/drivers/radeonsi/Automake.inc1
-rw-r--r--src/gallium/drivers/radeonsi/Makefile.am7
-rw-r--r--src/gallium/drivers/radeonsi/Makefile.sources22
-rw-r--r--src/gallium/targets/pipe-loader/Makefile.am1
7 files changed, 28 insertions, 58 deletions
diff --git a/src/gallium/Makefile.am b/src/gallium/Makefile.am
index 8170c9043da..f1fd22cece2 100644
--- a/src/gallium/Makefile.am
+++ b/src/gallium/Makefile.am
@@ -42,11 +42,6 @@ if HAVE_GALLIUM_R300
SUBDIRS += drivers/r300
endif
-## radeon - linked into radeonsi
-if HAVE_GALLIUM_RADEON_COMMON
-SUBDIRS += drivers/radeon
-endif
-
## r600
if HAVE_GALLIUM_R600
SUBDIRS += drivers/r600
diff --git a/src/gallium/drivers/radeon/Makefile.am b/src/gallium/drivers/radeon/Makefile.am
deleted file mode 100644
index 1e1d49efd19..00000000000
--- a/src/gallium/drivers/radeon/Makefile.am
+++ /dev/null
@@ -1,29 +0,0 @@
-include Makefile.sources
-include $(top_srcdir)/src/gallium/Automake.inc
-
-
-AM_CFLAGS = \
- $(GALLIUM_DRIVER_CFLAGS) \
- $(RADEON_CFLAGS) \
- -I$(top_srcdir)/src/amd/common
-
-noinst_LTLIBRARIES = libradeon.la
-
-libradeon_la_SOURCES = \
- $(C_SOURCES)
-
-if HAVE_GALLIUM_LLVM
-
-AM_CFLAGS += \
- $(LLVM_CFLAGS)
-
-libradeon_la_LIBADD = \
- $(CLOCK_LIB) \
- $(LLVM_LIBS)
-
-libradeon_la_LDFLAGS = \
- $(LLVM_LDFLAGS)
-
-endif
-
-EXTRA_DIST = meson.build
diff --git a/src/gallium/drivers/radeon/Makefile.sources b/src/gallium/drivers/radeon/Makefile.sources
deleted file mode 100644
index fbd1ab697a9..00000000000
--- a/src/gallium/drivers/radeon/Makefile.sources
+++ /dev/null
@@ -1,21 +0,0 @@
-C_SOURCES := \
- r600_perfcounter.c \
- r600_pipe_common.h \
- radeon_uvd.c \
- radeon_uvd.h \
- radeon_vcn_dec.c \
- radeon_vcn_dec.h \
- radeon_vcn_enc_1_2.c \
- radeon_vcn_enc.c \
- radeon_vcn_enc.h \
- radeon_uvd_enc_1_1.c \
- radeon_uvd_enc.c \
- radeon_uvd_enc.h \
- radeon_vce_40_2_2.c \
- radeon_vce_50.c \
- radeon_vce_52.c \
- radeon_vce.c \
- radeon_vce.h \
- radeon_video.c \
- radeon_video.h \
- radeon_winsys.h
diff --git a/src/gallium/drivers/radeonsi/Automake.inc b/src/gallium/drivers/radeonsi/Automake.inc
index 6f1843a3c64..740648d798b 100644
--- a/src/gallium/drivers/radeonsi/Automake.inc
+++ b/src/gallium/drivers/radeonsi/Automake.inc
@@ -16,7 +16,6 @@ TARGET_RADEON_WINSYS = \
$(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la
TARGET_RADEON_COMMON = \
- $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
$(top_builddir)/src/amd/common/libamd_common.la
endif
diff --git a/src/gallium/drivers/radeonsi/Makefile.am b/src/gallium/drivers/radeonsi/Makefile.am
index b39c55944cd..62b877d4ea4 100644
--- a/src/gallium/drivers/radeonsi/Makefile.am
+++ b/src/gallium/drivers/radeonsi/Makefile.am
@@ -37,6 +37,13 @@ noinst_LTLIBRARIES = libradeonsi.la
libradeonsi_la_SOURCES = $(C_SOURCES)
+libradeonsi_la_LIBADD = \
+ $(CLOCK_LIB) \
+ $(LLVM_LIBS)
+
+libradeonsi_la_LDFLAGS = \
+ $(LLVM_LDFLAGS)
+
GEN_DRIINFO_INPUTS = \
$(top_srcdir)/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h \
$(srcdir)/driinfo_radeonsi.h
diff --git a/src/gallium/drivers/radeonsi/Makefile.sources b/src/gallium/drivers/radeonsi/Makefile.sources
index 3b1726d17dc..6117005cbd3 100644
--- a/src/gallium/drivers/radeonsi/Makefile.sources
+++ b/src/gallium/drivers/radeonsi/Makefile.sources
@@ -44,4 +44,24 @@ C_SOURCES := \
si_state.h \
si_test_dma.c \
si_texture.c \
- si_uvd.c
+ si_uvd.c \
+ ../radeon/r600_perfcounter.c \
+ ../radeon/r600_pipe_common.h \
+ ../radeon/radeon_uvd.c \
+ ../radeon/radeon_uvd.h \
+ ../radeon/radeon_vcn_dec.c \
+ ../radeon/radeon_vcn_dec.h \
+ ../radeon/radeon_vcn_enc_1_2.c \
+ ../radeon/radeon_vcn_enc.c \
+ ../radeon/radeon_vcn_enc.h \
+ ../radeon/radeon_uvd_enc_1_1.c \
+ ../radeon/radeon_uvd_enc.c \
+ ../radeon/radeon_uvd_enc.h \
+ ../radeon/radeon_vce_40_2_2.c \
+ ../radeon/radeon_vce_50.c \
+ ../radeon/radeon_vce_52.c \
+ ../radeon/radeon_vce.c \
+ ../radeon/radeon_vce.h \
+ ../radeon/radeon_video.c \
+ ../radeon/radeon_video.h \
+ ../radeon/radeon_winsys.h
diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am
index 4b84886f300..bddc4e8b584 100644
--- a/src/gallium/targets/pipe-loader/Makefile.am
+++ b/src/gallium/targets/pipe-loader/Makefile.am
@@ -143,7 +143,6 @@ pipe_radeonsi_la_LIBADD = \
$(PIPE_LIBS) \
$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
$(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la \
- $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
$(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
$(top_builddir)/src/amd/common/libamd_common.la \
$(top_builddir)/src/util/libxmlconfig.la \