[Beignet] [PATCH] cmake: add check for drm_intel_bo_set_softpin_offset
Luo, Xionghu
xionghu.luo at intel.com
Mon Dec 21 17:31:51 PST 2015
Please also add check for function 'drm_intel_bo_use_48b_address_range'.
Thanks.
Luo Xionghu
Best Regards
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Ruiling Song
Sent: Friday, December 11, 2015 3:28 PM
To: beignet at lists.freedesktop.org
Cc: Song, Ruiling
Subject: [Beignet] [PATCH] cmake: add check for drm_intel_bo_set_softpin_offset
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
CMakeLists.txt | 1 +
src/CMakeLists.txt | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e88a65..7ac007c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -146,6 +146,7 @@ IF(DRM_INTEL_FOUND)
MESSAGE(STATUS "Disable EU total query support")
MESSAGE(STATUS "Disable subslice total query support")
ENDIF(DRM_INTEL_VERSION VERSION_GREATER 2.4.59)
+ CHECK_LIBRARY_EXISTS(drm_intel drm_intel_bo_set_softpin_offset
+ ${DRM_INTEL_LIBDIR} DRM_INTEL_SOFTPIN)
ELSE(DRM_INTEL_FOUND)
MESSAGE(FATAL_ERROR "Looking for DRM Intel (>= 2.4.52) - not found")
ENDIF(DRM_INTEL_FOUND)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 40a9afb..2788d3c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -129,6 +129,11 @@ SET(CMAKE_CXX_FLAGS "-DHAS_SUBSLICE_TOTAL ${CMAKE_CXX_FLAGS}") SET(CMAKE_C_FLAGS "-DHAS_SUBSLICE_TOTAL ${CMAKE_C_FLAGS}") endif (DRM_INTEL_SUBSLICE_TOTAL)
+if (DRM_INTEL_SOFTPIN)
+ SET(CMAKE_CXX_FLAGS "-DHAS_SOFTPIN ${CMAKE_CXX_FLAGS}")
+ SET(CMAKE_C_FLAGS "-DHAS_SOFTPIN ${CMAKE_C_FLAGS}") endif
+(DRM_INTEL_SOFTPIN)
+
set(GIT_SHA1 "git_sha1.h")
add_custom_target(${GIT_SHA1} ALL
COMMAND chmod +x ${CMAKE_CURRENT_SOURCE_DIR}/git_sha1.sh
--
2.4.1
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list