From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] libGL: enable opencl on ppc, disable xa on ppc/aarch64
Date: Fri, 27 Sep 2019 14:06:13 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14762@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 525 bytes --]
There is a new pull request by q66 against master on the void-packages repository
https://github.com/void-ppc/void-packages libgl-fix
https://github.com/void-linux/void-packages/pull/14762
libGL: enable opencl on ppc, disable xa on ppc/aarch64
The latter is necessary because otherwise it seems mesa will still build it by default and the library will leak into libGL itself.
OpenCL on ppc used not to build but it builds now.
A patch file from https://github.com/void-linux/void-packages/pull/14762.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libgl-fix-14762.patch --]
[-- Type: text/x-diff, Size: 2502 bytes --]
From 3bc0e00ed0457a767d9f70acf329736ff5f692e9 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Fri, 27 Sep 2019 12:55:53 +0200
Subject: [PATCH] libGL: enable opencl on ppc, disable xa on ppc/aarch64
The latter is necessary because otherwise it seems mesa will
still build it by default and the library will leak into libGL
itself.
OpenCL on ppc used not to build but it builds now.
[ci skip]
---
srcpkgs/libGL/template | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/libGL/template b/srcpkgs/libGL/template
index 9fa3577dcbb..e1a20f31347 100644
--- a/srcpkgs/libGL/template
+++ b/srcpkgs/libGL/template
@@ -1,7 +1,7 @@
# Template file for 'libGL'
pkgname=libGL
version=19.1.7
-revision=2
+revision=3
wrksrc="mesa-${version}"
build_style=meson
configure_args="-Dshared-glapi=true -Dgbm=true -Degl=true
@@ -44,19 +44,21 @@ ppc*)
configure_args+=" -Dgallium-drivers=r300,r600,radeonsi,swrast,nouveau,virgl"
configure_args+=" -Ddri-drivers=r100,r200,nouveau"
configure_args+=" -Dvulkan-drivers=amd"
- configure_args+=" -Ddri3=true"
+ configure_args+=" -Dgallium-xa=false -Ddri3=true -Dgallium-opencl=icd"
# Explicitly control power8 feature usage, disable on BE
case "$XBPS_TARGET_MACHINE" in
ppc64le*) configure_args+=" -Dpower8=true";;
*) configure_args+=" -Dpower8=false";;
esac
hostmakedepends+=" clang"
+ makedepends+=" libclc-git"
subpackages+=" mesa-ati-dri mesa-nouveau-dri"
+ subpackages+=" mesa-opencl"
;;
aarch64*)
configure_args+=" -Dgallium-drivers=nouveau,tegra,swrast,vc4"
configure_args+=" -Dvulkan-drivers= -Ddri-drivers="
- configure_args+=" -Ddri3=true"
+ configure_args+=" -Dgallium-xa=false -Ddri3=true"
subpackages+=" mesa-tegra-dri mesa-nouveau-dri mesa-vc4-dri"
;;
armv7l*)
@@ -181,13 +183,8 @@ mesa-ati-dri_package() {
vmove usr/lib/dri/r*
vmove "usr/share/vulkan/icd.d/radeon_icd*.json"
vmove "usr/lib/libvulkan_radeon.so"
- case "$XBPS_TARGET_MACHINE" in
- ppc*) ;;
- *)
- vmove "usr/lib/gallium-pipe/pipe_r[36]00.so"
- vmove usr/lib/gallium-pipe/pipe_radeonsi.so
- ;;
- esac
+ vmove "usr/lib/gallium-pipe/pipe_r[36]00.so"
+ vmove usr/lib/gallium-pipe/pipe_radeonsi.so
}
}
@@ -209,7 +206,7 @@ mesa-nouveau-dri_package() {
vmove "usr/lib/xorg/modules/drivers/nouveau*"
vmove "usr/lib/dri/nouveau*"
case "$XBPS_TARGET_MACHINE" in
- aarch64*|ppc*) ;;
+ aarch64*) ;;
*) vmove usr/lib/gallium-pipe/pipe_nouveau.so ;;
esac
}
next reply other threads:[~2019-09-27 12:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-27 12:06 voidlinux-github [this message]
2019-09-30 18:16 ` [PR PATCH] [Merged]: " voidlinux-github
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14762@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).