From 41192e7d526392177c6e931873b019bd9fbd62f4 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 26 Oct 2017 10:58:54 +0300 Subject: mesa: compilation fixed in upstream, patch removed --- .../clover-Fix-compiling-with-LLVM-r315871.patch | 29 ---------------------- media-libs/mesa/mesa-scm.ebuild | 6 ++--- 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 media-libs/mesa/files/clover-Fix-compiling-with-LLVM-r315871.patch (limited to 'media-libs') diff --git a/media-libs/mesa/files/clover-Fix-compiling-with-LLVM-r315871.patch b/media-libs/mesa/files/clover-Fix-compiling-with-LLVM-r315871.patch deleted file mode 100644 index 9ccfafb..0000000 --- a/media-libs/mesa/files/clover-Fix-compiling-with-LLVM-r315871.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp b/src/gallium/state_trackers/clover/llvm/codegen/common.cpp -index 075183400a..8bb9e0e47a 100644 ---- a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp -+++ b/src/gallium/state_trackers/clover/llvm/codegen/common.cpp -@@ -128,8 +128,9 @@ namespace { - const unsigned address_space = - cast< ::llvm::PointerType>(actual_type)->getAddressSpace(); - -- if (address_space == address_spaces[clang::LangAS::opencl_local -- - compat::lang_as_offset]) { -+ if (address_space == address_spaces[ -+ static_cast(clang::LangAS::opencl_local) - -+ static_cast(compat::lang_as_offset)]) { - args.emplace_back(module::argument::local, arg_api_size, - target_size, target_align, - module::argument::zero_ext); -diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp -index f8b56516d5..ef173ea56f 100644 ---- a/src/gallium/state_trackers/clover/llvm/compat.hpp -+++ b/src/gallium/state_trackers/clover/llvm/compat.hpp -@@ -70,7 +70,7 @@ namespace clover { - #endif - - #if HAVE_LLVM >= 0x0500 -- const auto lang_as_offset = 0; -+ const auto lang_as_offset = clang::LangAS::Default; - const clang::InputKind ik_opencl = clang::InputKind::OpenCL; - #else - const auto lang_as_offset = clang::LangAS::Offset; diff --git a/media-libs/mesa/mesa-scm.ebuild b/media-libs/mesa/mesa-scm.ebuild index ed1f676..3bc30cd 100644 --- a/media-libs/mesa/mesa-scm.ebuild +++ b/media-libs/mesa/mesa-scm.ebuild @@ -195,9 +195,9 @@ src_unpack() { git-r3_src_unpack } -PATCHES=( - "$FILESDIR/clover-Fix-compiling-with-LLVM-r315871.patch" -) +#PATCHES=( +# "$FILESDIR/clover-Fix-compiling-with-LLVM-r315871.patch" +#) src_prepare() { default -- cgit v1.2.3