Refreshed patch.
Drop VectorCompiler build config, which is not require anymore.

Signed-off-by: Naveen Saini <[email protected]>
---
 .../files/link-to-LLVMGenXIntrinsics.patch    | 35 ++++++++++++-------
 ...bb => intel-graphics-compiler_1.0.6083.bb} |  6 +---
 2 files changed, 23 insertions(+), 18 deletions(-)
 rename 
dynamic-layers/clang-layer/recipes-opencl/igc/{intel-graphics-compiler_1.0.5435.bb
 => intel-graphics-compiler_1.0.6083.bb} (85%)

diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/igc/files/link-to-LLVMGenXIntrinsics.patch
 
b/dynamic-layers/clang-layer/recipes-opencl/igc/files/link-to-LLVMGenXIntrinsics.patch
index 89a28097..aead2d1c 100644
--- 
a/dynamic-layers/clang-layer/recipes-opencl/igc/files/link-to-LLVMGenXIntrinsics.patch
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/igc/files/link-to-LLVMGenXIntrinsics.patch
@@ -1,6 +1,6 @@
-From 483154871f72590b81c036b000be09627376b5a9 Mon Sep 17 00:00:00 2001
+From 11b923c99cbe3580885ce40c322277fc823107a0 Mon Sep 17 00:00:00 2001
 From: Naveen Saini <[email protected]>
-Date: Thu, 27 Aug 2020 12:17:12 +0800
+Date: Tue, 2 Feb 2021 13:39:53 +0800
 Subject: [PATCH] IGC/VectorCompiler/CMakeLists.txt: link to external
  LLVMGenXIntrinsics
 
@@ -13,14 +13,14 @@ Upstream-Status: Inappropriate [configuration specific]
 
 Signed-off-by: Naveen Saini <[email protected]>
 ---
- IGC/VectorCompiler/CMakeLists.txt | 23 ++---------------------
- 1 file changed, 2 insertions(+), 21 deletions(-)
+ IGC/VectorCompiler/CMakeLists.txt | 32 ++-----------------------------
+ 1 file changed, 2 insertions(+), 30 deletions(-)
 
 diff --git a/IGC/VectorCompiler/CMakeLists.txt 
b/IGC/VectorCompiler/CMakeLists.txt
-index 3592e0b4..ae754b8b 100644
+index 86f343ee..b4268160 100644
 --- a/IGC/VectorCompiler/CMakeLists.txt
 +++ b/IGC/VectorCompiler/CMakeLists.txt
-@@ -50,10 +50,7 @@ if(IGC_BUILD__USING_SYSTEM_LLVM OR (WIN32 AND 
LLVM_USE_PREBUILT))
+@@ -53,10 +53,7 @@ if(IGC_BUILD__USING_SYSTEM_LLVM OR (WIN32 AND 
LLVM_USE_PREBUILT))
    message(STATUS "[VC] Using system llvm")
  
    # Need to search for llvm-tblgen
@@ -32,8 +32,8 @@ index 3592e0b4..ae754b8b 100644
    if(LLVM_TABLEGEN_EXE-NOTFOUND)
      message(FATAL_ERROR "[VC] llvm-tblgen is not found")
    endif()
-@@ -131,23 +128,7 @@ if(LLVM_ON_WIN32)
-   add_compile_options(/wd4624)
+@@ -140,32 +137,7 @@ if(LLVM_ON_WIN32)
+   add_compile_options(/wd4141)
  endif()
  
 -if(DEFINED VC_INTRINSICS_SRC)
@@ -48,15 +48,24 @@ index 3592e0b4..ae754b8b 100644
 -
 -# We are using prebuilt SPIRV and building intrinsics.
 -set(INTRBUILD "${CMAKE_CURRENT_BINARY_DIR}/intrbuild")
--
--
--# Do not copy anything from prebuilts. libSPIRVDLL.so will be dynamically 
loaded at runtime.
 -add_subdirectory(${INTRSRC} ${INTRBUILD})
--include_directories(${INTRSRC}/include ${INTRBUILD}/include)
+-# Make separate target for intrinstics headers.
+-# Ideally, this should be inside intrinsics, but
+-# this breaks in-tree build of intrinsics with LLVM.
+-add_library(VCIntrinsicsHeaders INTERFACE)
+-target_include_directories(VCIntrinsicsHeaders
+-  INTERFACE
+-  ${INTRSRC}/include
+-  ${INTRBUILD}/include
+-  )
+-add_dependencies(VCIntrinsicsHeaders
+-  GenXIntrinsics
+-  )
+-
 +find_package(LLVMGenXIntrinsics REQUIRED)
- 
  include(cmake/spirv.cmake)
  include(${IGC_SOURCE_DIR}/cmake/utils.cmake)
+ 
 -- 
 2.17.1
 
diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.5435.bb
 
b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.6083.bb
similarity index 85%
rename from 
dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.5435.bb
rename to 
dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.6083.bb
index e762246c..c92b8ea4 100644
--- 
a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.5435.bb
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.6083.bb
@@ -14,7 +14,7 @@ SRC_URI = 
"git://github.com/intel/intel-graphics-compiler.git;protocol=https; \
            file://improve_src_package_reproducibility.patch \
           "
 
-SRCREV = "93f02a7dfa37d879abc2ff5d62fd1e527fa4b03a"
+SRCREV = "f6ec355e7e275f87e0756576cd7a390d2365ed48"
 
 # Used to replace with relative path in reproducibility patch
 export B
@@ -34,10 +34,6 @@ RDEPENDS_${PN} += "opencl-clang"
 LLVM_COMPAT_VERSION = "${@bb.utils.contains('LLVMVERSION', '10.0.1', '10.0.0', 
'11.1.0', d)}"
 EXTRA_OECMAKE = "-DIGC_PREFERRED_LLVM_VERSION=${LLVM_COMPAT_VERSION} 
-DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 -DINSTALL_SPIRVDLL=0 
-DIGC_BUILD__VC_ENABLED=OFF"
 
-# VectorCompiler doesn't build with LLVM11 as of this release.
-# Re-enable after those issues have been fixed.
-EXTRA_OECMAKE_append = " ${@bb.utils.contains('LLVMVERSION', '11.0.0', 
"-DIGC_BUILD__VC_ENABLED=OFF", "", d)}"
-
 BBCLASSEXTEND = "native nativesdk"
 
 UPSTREAM_CHECK_GITTAGREGEX = "^igc-(?P<pver>(?!19\..*)\d+(\.\d+)+)$"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6901): 
https://lists.yoctoproject.org/g/meta-intel/message/6901
Mute This Topic: https://lists.yoctoproject.org/mt/80311461/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to