amd/common: build also for gallium drivers

At least when LLVM is used, which is basically always (unless you're only
building r600 without OpenCL).

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle 2016-10-31 11:56:09 +01:00
parent 8eabee9ec0
commit 2ff5df8f50
3 changed files with 13 additions and 2 deletions

View file

@ -78,6 +78,10 @@ if HAVE_AMD_DRIVERS
SUBDIRS += amd
endif
if NEED_RADEON_LLVM
SUBDIRS += amd/common
endif
if HAVE_INTEL_DRIVERS
SUBDIRS += intel
endif
@ -126,7 +130,6 @@ endif
# Requires wayland-drm
if HAVE_RADEON_VULKAN
SUBDIRS += amd/common
SUBDIRS += amd/vulkan
endif

View file

@ -49,3 +49,9 @@ AM_CXXFLAGS = \
noinst_LTLIBRARIES = libamd_common.la
libamd_common_la_SOURCES = $(AMD_COMPILER_SOURCES)
# nir_to_llvm requires LLVM 3.9, which is only required as a minimum when
# radv is built.
if HAVE_RADEON_VULKAN
libamd_common_la_SOURCES += $(AMD_NIR_SOURCES)
endif

View file

@ -24,6 +24,8 @@ AMD_COMPILER_SOURCES := \
ac_binary.h \
ac_llvm_helper.cpp \
ac_llvm_util.c \
ac_llvm_util.h \
ac_llvm_util.h
AMD_NIR_SOURCES := \
ac_nir_to_llvm.c \
ac_nir_to_llvm.h