OBmesa: Upgrade to 17.2.1 release
PATCH v3 1/1 OBmesa: Upgrade to 17.2.1 release
Upgrade to a new stable release and drop patches applied on upstream.
For a full release notes, please see:
https://mesa3d.org/relnotes/17.2.0.html
https://mesa3d.org/relnotes/17.2.1.html
---
This patch has been tested using OE-Core current Wayland as well as v2 of Fabien patches:
weston: Bump version to 3.0.0
wayland-protocols: Fix installation patch issue
wayland : Bump to version 1.14.0
The distro used for test had: opengl, wayland, x11 and vulkan enabled.
Changes in v3:
- fix build for wayland
Changes in v2:
- update to 17.2.1
...1-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch | 40 ------------------
...allivm-Fix-build-against-LLVM-SVN-r302589.patch | 49 ----------------------
.../mesa/{mesa-gl_17.1.7.bb => mesa-gl_17.2.1.bb} | 0
meta/recipes-graphics/mesa/mesa.inc | 2 +-
.../mesa/{mesa_17.1.7.bb => mesa_17.2.1.bb} | 7 ++--
5 files changed, 4 insertions(+), 94 deletions(-)
delete mode 100644 meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch
delete mode 100644 meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch
rename meta/recipes-graphics/mesa/{mesa-gl_17.1.7.bb => mesa-gl_17.2.1.bb} (100%)
rename meta/recipes-graphics/mesa/{mesa_17.1.7.bb => mesa_17.2.1.bb} (77%)meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 9861437e58fdd0de01193a102608d34e5952953f Mon Sep 17 00:00:00 2001 -From: Christoph Haag <[email protected]> -Date: Thu, 20 Apr 2017 10:34:18 +0200 -Subject: [PATCH 1/2] ac: fix build after LLVM 5.0 SVN r300718 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -v2: previously getWithDereferenceableBytes() exists, but addAttr() doesn't take that type - -Signed-off-by: Christoph Haag <[email protected]> -Reviewed-by: Nicolai Hähnle <[email protected]> -Tested-and-reviewed-by: Mike Lothian <[email protected]> ---- -Upstream-Status: Backport - - src/amd/common/ac_llvm_helper.cpp | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/amd/common/ac_llvm_helper.cpp b/src/amd/common/ac_llvm_helper.cpp -index d9ea4b1..11fa809 100644 ---- a/src/amd/common/ac_llvm_helper.cpp -+++ b/src/amd/common/ac_llvm_helper.cpp -@@ -44,9 +44,13 @@ typedef AttributeSet AttributeList; - void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes) - { - llvm::Argument *A = llvm::unwrap<llvm::Argument>(val); -+#if HAVE_LLVM < 0x0500 - llvm::AttrBuilder B; - B.addDereferenceableAttr(bytes); - A->addAttr(llvm::AttributeList::get(A->getContext(), A->getArgNo() + 1, B)); -+#else -+ A->addAttr(llvm::Attribute::getWithDereferenceableBytes(A->getContext(), bytes)); -+#endif - } - - bool ac_is_sgpr_param(LLVMValueRef arg) --- -2.13.3 -
meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch deleted +0 -49
49 lines not on this page · raw message
meta/recipes-graphics/mesa/mesa-gl_17.2.1.bb renamed from meta/recipes-graphics/mesa/mesa-gl_17.1.7.bb +0 -0
meta/recipes-graphics/mesa/mesa.inc +1 -1
@@ -45,7 +45,7 @@ X11_DEPS = "xf86driproto glproto virtual/libx11 libxext libxxf86vm libxdamage li # "x11" requires "opengl" PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc" -PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm" +PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" DRIDRIVERS = "swrast" DRIDRIVERS_append_x86 = ",radeon,r200,nouveau,i965,i915"
meta/recipes-graphics/mesa/mesa_17.2.1.bb renamed from meta/recipes-graphics/mesa/mesa_17.1.7.bb +3 -4
@@ -7,13 +7,12 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ file://0002-hardware-gloat.patch \ file://vulkan-mkdir.patch \ file://llvm-config-version.patch \ - file://0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch \ - file://0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch \ file://0001-winsys-svga-drm-Include-sys-types.h.patch \ file://0001-configure.ac-Always-check-for-expat.patch \ " -SRC_URI[md5sum] = "e40bb428a263bd28cbf6478dae45b207" -SRC_URI[sha256sum] = "69f472a874b1122404fa0bd13e2d6bf87eb3b9ad9c21d2f39872a96d83d9e5f5" + +SRC_URI[md5sum] = "f53ed38110237d9df5f9198c09ef0ab0" +SRC_URI[sha256sum] = "77385d17827cff24a3bae134342234f2efe7f7f990e778109682571dbbc9ba1e" #because we cannot rely on the fact that all apps will use pkgconfig, #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
Signature · 1 line
2.14.1
I'm guessing this upgrade actually requires the wayland upgrades?
| make[4]: *** No rule to make target '/usr/share/wayland-protocols/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml', needed by 'drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h'. Stop.
Ross
Quoted 215 lines · Otavio Salvador
Upgrade to a new stable release and drop patches applied on upstream.
For a full release notes, please see:
https://mesa3d.org/relnotes/17.2.0.html
https://mesa3d.org/relnotes/17.2.1.htmlSigned-off-by Fabio Berton <[email protected]>Signed-off-by Otavio Salvador <[email protected]>---
This patch has been tested using OE-Core current Wayland as well as v2 of Fabien patches:weston: Bump version to 3.0.0
wayland-protocols: Fix installation patch issue
wayland : Bump to version 1.14.0The distro used for test had: opengl, wayland, x11 and vulkan enabled.
Changes in v3:
- fix build for waylandChanges in v2:
- update to 17.2.1...1-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch | 40 ------------------ ...allivm-Fix-build-against-LLVM-SVN-r302589.patch | 49 ---------------------- .../mesa/{mesa-gl_17.1.7.bb => mesa-gl_17.2.1.bb} | 0 meta/recipes-graphics/mesa/mesa.inc | 2 +- .../mesa/{mesa_17.1.7.bb => mesa_17.2.1.bb} | 7 ++-- 5 files changed, 4 insertions(+), 94 deletions(-) delete mode 100644 meta/recipes-graphics/mesa/ files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch delete mode 100644 meta/recipes-graphics/mesa/ files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch rename meta/recipes-graphics/mesa/{mesa-gl_17.1.7.bb => mesa-gl_17.2.1.bb} (100%) rename meta/recipes-graphics/mesa/{mesa_17.1.7.bb => mesa_17.2.1.bb}(77%)
meta/recipes-graphics/mesa/files/0001-ac-fix-build-after- renamed from meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch +0
-0LLVM-5.0-SVN-r300718.patch
deleted file mode 100644
index b27a3bc8e4..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-ac-fix-build-after- LLVM-5.0-SVN-r300718.patch
+++/dev/nullmeta/recipes-graphics/mesa/files/0001-ac-fix-build-after- renamed from meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch +0
-9@@ -1,40 +0,0 @@ -From 9861437e58fdd0de01193a102608d34e5952953f Mon Sep 17 00:00:00 2001 -From: Christoph Haag <[email protected]> -Date: Thu, 20 Apr 2017 10:34:18 +0200 -Subject: [PATCH 1/2] ac: fix build after LLVM 5.0 SVN r300718 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -v2: previously getWithDereferenceableBytes() exists, but addAttr()doesn't take that type
meta/recipes-graphics/mesa/files/0001-ac-fix-build-after- renamed from meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch +0
-11- -Signed-off-by: Christoph Haag <[email protected]> -Reviewed-by: Nicolai Hähnle <[email protected]> -Tested-and-reviewed-by: Mike Lothian <[email protected]> ---- -Upstream-Status: Backport - - src/amd/common/ac_llvm_helper.cpp | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/amd/common/ac_llvm_helper.cpp b/src/amd/common/ac_llvm_helper.cpp
meta/recipes-graphics/mesa/files/0001-ac-fix-build-after- renamed from meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch +0
-11-index d9ea4b1..11fa809 100644 ---- a/src/amd/common/ac_llvm_helper.cpp -+++ b/src/amd/common/ac_llvm_helper.cpp -@@ -44,9 +44,13 @@ typedef AttributeSet AttributeList; - void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes) - { - llvm::Argument *A = llvm::unwrap<llvm::Argument>(val); -+#if HAVE_LLVM < 0x0500 - llvm::AttrBuilder B; - B.addDereferenceableAttr(bytes); - A->addAttr(llvm::AttributeList::get(A->getContext(), A->getArgNo() +1, B));
-+#else
-+ A->addAttr(llvm::Attribute::getWithDereferenceableBytes(A->getContext(),
bytes));
-+#endif
- }meta/recipes-graphics/mesa/files/0001-ac-fix-build-after- renamed from meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch +0
-5- - bool ac_is_sgpr_param(LLVMValueRef arg) --- -2.13.3 -meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build- renamed from meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch +0
-0against-LLVM-SVN-r302589.patch
deleted file mode 100644
index ac8caec74d..0000000000
--- a/meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build- against-LLVM-SVN-r302589.patch
+++/dev/nullmeta/recipes-graphics/mesa/files/0002-gallivm-Fix-build- renamed from meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch +0
-19@@ -1,49 +0,0 @@ -From a02a0dfda2712d30ad62b8f0421ec7b8244ba2cb Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <[email protected]> -Date: Wed, 10 May 2017 17:26:07 +0900 -Subject: [PATCH 2/2] gallivm: Fix build against LLVM SVN >= r302589 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -deregisterEHFrames doesn't take any parameters anymore. - -Reviewed-by: Vedran Miletić <[email protected]> -Reviewed-by: Marek Olšák <[email protected]> ---- -Upstream-Status: Backport - - src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +++++++++--- - 1 file changed, 9 insertions(+), 3 deletions(-) - -diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cppb/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
-index 2a388cb..0e4a531 100644
---- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -@@ -342,14 +342,20 @@ class DelegatingJITMemoryManager : public BaseMemoryManager {
- virtual void registerEHFrames(uint8_t *Addr,uint64_tLoadAddr,size_tSize) {meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build- renamed from meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch +0
-3- mgr()->registerEHFrames(Addr, LoadAddr, Size); - } -- virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr,
size_tSize) {
-- mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
-- }
- #elsemeta/recipes-graphics/mesa/files/0002-gallivm-Fix-build- renamed from meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch +0
-10- virtual void registerEHFrames(llvm::StringRef SectionData) { - mgr()->registerEHFrames(SectionData); - } - #endif -+#if HAVE_LLVM >= 0x0500 -+ virtual void deregisterEHFrames() { -+ mgr()->deregisterEHFrames(); -+ } -+#elif HAVE_LLVM >= 0x0304 -+ virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr,
size_tSize) {
-+ mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
-+ }
-+#endifmeta/recipes-graphics/mesa/files/0002-gallivm-Fix-build- renamed from meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch +0
-6- virtual void *getPointerToNamedFunction(const std::string &Name, - bool AbortOnFailure=true) { - return mgr()->getPointerToNamedFunction(Name, AbortOnFailure); --- -2.13.3 -meta/recipes-graphics/mesa/mesa-gl_17.2.1.bb renamed from meta/recipes-graphics/mesa/mesa-gl_17.1.7.bb +0
-0meta/recipes-graphics/mesa/mesa.inc +0
-0@@ -45,7 +45,7 @@ X11_DEPS = "xf86driproto glproto virtual/libx11 libxextlibxxf86vm libxdamage li
# "x11" requires "opengl"
PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"meta/recipes-graphics/mesa/mesa.inc +1
-1-PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm" +PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrmwayland-protocols"
DRIDRIVERS = "swrast"
DRIDRIVERS_append_x86= ",radeon,r200,nouveau,i965,i915"meta/recipes-graphics/mesa/mesa_17.2.1.bb renamed from meta/recipes-graphics/mesa/mesa_17.1.7.bb +0
-4@@ -7,13 +7,12 @@ SRC_URI = "https://mesa.freedesktop.org/ archive/mesa-${PV}.tar.xz \ file://0002-hardware-gloat.patch \ file://vulkan-mkdir.patch \ file://llvm-config-version.patch \ - file://0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch \ - file://0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch \ file://0001-winsys-svga-drm-Include-sys-types.h.patch \ file://0001-configure.ac-Always-check-for-expat.patch \ " -SRC_URI[md5sum] = "e40bb428a263bd28cbf6478dae45b207" -SRC_URI[sha256sum] = "69f472a874b1122404fa0bd13e2d6b
f87eb3b9ad9c21d2f39872a96d83d9e5f5"meta/recipes-graphics/mesa/mesa_17.2.1.bb renamed from meta/recipes-graphics/mesa/mesa_17.1.7.bb +3
-0+ +SRC_URI[md5sum] = "f53ed38110237d9df5f9198c09ef0ab0" +SRC_URI[sha256sum] = "77385d17827cff24a3bae134342234
f2efe7f7f990e778109682571dbbc9ba1e"#because we cannot rely on the fact that all apps will use pkgconfig, #make
eglplatform.hindependent ofMESA_EGL_NO_X11_HEADER
--
2.14.1--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core