From: Jan Vesely <jan.ves...@rutgers.edu> Signed-off-by: Jan Vesely <jan.ves...@rutgers.edu> Reviewed-by: Aaron Watry <awa...@gmail.com> --- configure.ac | 3 ++- src/gallium/drivers/r600/Android.mk | 5 ----- src/gallium/drivers/r600/Automake.inc | 2 +- src/gallium/targets/pipe-loader/Makefile.am | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac index 5caf316089..e0996a0004 100644 --- a/configure.ac +++ b/configure.ac @@ -2631,7 +2631,8 @@ AM_CONDITIONAL(HAVE_SWRAST_DRI, test x$HAVE_SWRAST_DRI = xyes) AM_CONDITIONAL(HAVE_RADEON_VULKAN, test "x$HAVE_RADEON_VULKAN" = xyes) AM_CONDITIONAL(HAVE_INTEL_VULKAN, test "x$HAVE_INTEL_VULKAN" = xyes) -AM_CONDITIONAL(HAVE_AMD_DRIVERS, test "x$HAVE_GALLIUM_R600" = xyes -o \ +AM_CONDITIONAL(HAVE_AMD_DRIVERS, test \( "x$HAVE_GALLIUM_R600" = xyes -a \ + "x$enable_opencl" = xyes \) -o \ "x$HAVE_GALLIUM_RADEONSI" = xyes -o \ "x$HAVE_RADEON_VULKAN" = xyes) diff --git a/src/gallium/drivers/r600/Android.mk b/src/gallium/drivers/r600/Android.mk index 87f433dbae..18c5bb6344 100644 --- a/src/gallium/drivers/r600/Android.mk +++ b/src/gallium/drivers/r600/Android.mk @@ -30,11 +30,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := $(C_SOURCES) $(CXX_SOURCES) -ifeq ($(MESA_ENABLE_LLVM),true) -LOCAL_STATIC_LIBRARIES := libmesa_amd_common -else LOCAL_C_INCLUDES += $(MESA_TOP)/src/amd/common -endif LOCAL_SHARED_LIBRARIES := libdrm_radeon LOCAL_MODULE := libmesa_pipe_r600 @@ -45,7 +41,6 @@ include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_R600),) $(eval GALLIUM_LIBS += \ $(LOCAL_MODULE) \ - $(LOCAL_STATIC_LIBRARIES) \ libmesa_winsys_radeon) $(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES)) endif diff --git a/src/gallium/drivers/r600/Automake.inc b/src/gallium/drivers/r600/Automake.inc index fa457359de..c96fe743ce 100644 --- a/src/gallium/drivers/r600/Automake.inc +++ b/src/gallium/drivers/r600/Automake.inc @@ -13,7 +13,7 @@ TARGET_RADEON_WINSYS = \ TARGET_RADEON_COMMON = \ $(top_builddir)/src/gallium/drivers/radeon/libradeon.la -if HAVE_GALLIUM_LLVM +if HAVE_AMD_DRIVERS TARGET_RADEON_COMMON += \ $(top_builddir)/src/amd/common/libamd_common.la endif diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am index 5f629a2982..c99153310b 100644 --- a/src/gallium/targets/pipe-loader/Makefile.am +++ b/src/gallium/targets/pipe-loader/Makefile.am @@ -131,7 +131,7 @@ pipe_r600_la_LIBADD = \ $(LIBDRM_LIBS) \ $(RADEON_LIBS) -if HAVE_GALLIUM_LLVM +if HAVE_AMD_DRIVERS pipe_r600_la_LIBADD += \ $(top_builddir)/src/amd/common/libamd_common.la endif -- 2.11.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev