summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/mesa/files/clover-Fix-compiling-with-LLVM-r315871.patch29
-rw-r--r--media-libs/mesa/mesa-scm.ebuild6
2 files changed, 3 insertions, 32 deletions
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<unsigned>(clang::LangAS::opencl_local) -
-+ static_cast<unsigned>(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