From db42a995a5cdeedb9c3613dae4c387c77e8400b0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 10 Mar 2018 11:28:04 +0000 Subject: media-libs/mesa : revision bump, borrow LLVM 6 patches from frugalware :D --- media-libs/mesa/files/fixLlvm6apichange.patch | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 media-libs/mesa/files/fixLlvm6apichange.patch (limited to 'media-libs/mesa/files/fixLlvm6apichange.patch') diff --git a/media-libs/mesa/files/fixLlvm6apichange.patch b/media-libs/mesa/files/fixLlvm6apichange.patch new file mode 100644 index 00000000..fea356f3 --- /dev/null +++ b/media-libs/mesa/files/fixLlvm6apichange.patch @@ -0,0 +1,33 @@ +From ad218754c79e0af61d5ba225a4b195cb55c2cac9 Mon Sep 17 00:00:00 2001 +From: Tim Rowley +Date: Tue, 2 Jan 2018 10:48:21 -0600 +Subject: swr/rast: fix MemoryBuffer build break for llvm-6 + +LLVM api change. + +Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104381 +Tested-by: Laurent Carlier +Reviewed-By: Bruce Cherniak +--- + src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +index 3f0772c..59672bb 100644 +--- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp ++++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +@@ -498,7 +498,11 @@ std::unique_ptr JitCache::getObject(const llvm::Module* M) + break; + } + ++#if LLVM_VERSION_MAJOR < 6 + pBuf = llvm::MemoryBuffer::getNewUninitMemBuffer(size_t(header.GetBufferSize())); ++#else ++ pBuf = llvm::WritableMemoryBuffer::getNewUninitMemBuffer(size_t(header.GetBufferSize())); ++#endif + if (!fread(const_cast(pBuf->getBufferStart()), header.GetBufferSize(), 1, fpIn)) + { + pBuf = nullptr; +-- +cgit v1.1 + -- cgit v1.2.3