Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] libGL: enable opencl on ppc, disable xa on ppc/aarch64
@ 2019-09-27 12:06 voidlinux-github
  2019-09-30 18:16 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-09-27 12:06 UTC (permalink / raw)
  To: ml

[-- 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
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: libGL: enable opencl on ppc, disable xa on ppc/aarch64
  2019-09-27 12:06 [PR PATCH] libGL: enable opencl on ppc, disable xa on ppc/aarch64 voidlinux-github
@ 2019-09-30 18:16 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-09-30 18:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There's a merged pull request on the void-packages repository

libGL: enable opencl on ppc, disable xa on ppc/aarch64
https://github.com/void-linux/void-packages/pull/14762

Description:
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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-30 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-27 12:06 [PR PATCH] libGL: enable opencl on ppc, disable xa on ppc/aarch64 voidlinux-github
2019-09-30 18:16 ` [PR PATCH] [Merged]: " voidlinux-github

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).