From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C4105138334 for ; Wed, 1 May 2019 16:52:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BB0DE08E0; Wed, 1 May 2019 16:52:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 324DEE08E0 for ; Wed, 1 May 2019 16:52:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2FF834321C for ; Wed, 1 May 2019 16:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9874E5D7 for ; Wed, 1 May 2019 16:52:05 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1556729503.5a43f127415abee4ab3a03d2cd39626b28e7ed2e.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-neo/, dev-libs/intel-neo/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/intel-neo/Manifest dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch dev-libs/intel-neo/intel-neo-19.16.12873.ebuild dev-libs/intel-neo/metadata.xml X-VCS-Directories: dev-libs/intel-neo/ dev-libs/intel-neo/files/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 5a43f127415abee4ab3a03d2cd39626b28e7ed2e X-VCS-Branch: master Date: Wed, 1 May 2019 16:52:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2d2e123b-42fc-45ca-9b79-51c52244c91f X-Archives-Hash: 648127c2a5bce6abf004ba791138c89f commit: 5a43f127415abee4ab3a03d2cd39626b28e7ed2e Author: Marek Szuba gentoo org> AuthorDate: Wed May 1 16:45:19 2019 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed May 1 16:51:43 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a43f127 dev-libs/intel-neo: new package New OpenCL driver for Broadwell and newer. For older systems stick with dev-libs/beignet. Tested on Kaby Lake and Kaby Lake R, in both cases LuxMark manages to render all three scenes without errors or crashes. No multilib support yet because running a 32-bit build on amd64 causes type conflicts, will look at it later. Signed-off-by: Marek Szuba gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 dev-libs/intel-neo/Manifest | 1 + ...-neo-19.16.12873_cmake_no_libva_automagic.patch | 14 ++++++ dev-libs/intel-neo/intel-neo-19.16.12873.ebuild | 56 ++++++++++++++++++++++ dev-libs/intel-neo/metadata.xml | 22 +++++++++ 4 files changed, 93 insertions(+) diff --git a/dev-libs/intel-neo/Manifest b/dev-libs/intel-neo/Manifest new file mode 100644 index 00000000000..a9076df296b --- /dev/null +++ b/dev-libs/intel-neo/Manifest @@ -0,0 +1 @@ +DIST intel-neo-19.16.12873.tar.gz 2370395 BLAKE2B 2efc76c9729d3ec000455270e923df1e3d0ec5d0a5c31cd156401b37c63ba01ee2a6051f487a98c4db10f61c2a70434f994f15472f54741ef4a80a71b036636f SHA512 1ec8b7883bfeefc1ed2095eac6111803a44e3c88e8bd1a478fb89a5baa4484fc96894f7ef0c01f4b6b9cb94731cdfc633f38ef2f636fdeb2d5e4344ca4aaa2ae diff --git a/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch b/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch new file mode 100644 index 00000000000..fbfdfd32dff --- /dev/null +++ b/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch @@ -0,0 +1,14 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -374,9 +374,9 @@ + endif() + + # LibVA detection +-if(UNIX) ++if(UNIX AND ENABLE_VAAPI_MEDIA_SHARING) + set(IGDRCL__LIBVA_IS_REQUIRED "") +- if(IGDRCL_FORCE_USE_LIBVA) ++ if(IGDRCL_FORCE_USE_LIBVA OR ENABLE_VAAPI_MEDIA_SHARING) + set(IGDRCL__LIBVA_IS_REQUIRED "REQUIRED") + endif() + diff --git a/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild b/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild new file mode 100644 index 00000000000..ac08c8c0ab2 --- /dev/null +++ b/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +MY_PN="compute-runtime" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Intel Graphics Compute Runtime for OpenCL, for Gen8 (Broadwell) and beyond" +HOMEPAGE="https://github.com/intel/compute-runtime" +SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="vaapi" + +COMMON="dev-libs/ocl-icd + dev-util/intel-graphics-compiler + >=media-libs/gmmlib-19.0.0 + vaapi? ( + x11-libs/libdrm[video_cards_intel] + >=x11-libs/libva-2.0.0 + )" +DEPEND="${COMMON} + virtual/pkgconfig" +RDEPEND="${COMMON}" + +DOCS=( + README.md + documentation/FAQ.md + documentation/LIMITATIONS.md +) + +PATCHES=( + "${FILESDIR}"/${PN}-19.16.12873_cmake_no_libva_automagic.patch +) + +S="${WORKDIR}"/${MY_P} + +src_configure() { + local mycmakeargs=( + -DENABLE_VAAPI_MEDIA_SHARING=$(usex vaapi "ON" "OFF") + # If enabled, tests are automatically run during the compile phase + # - and we cannot run them because they require permissions to access + # the hardware. + -DSKIP_UNIT_TESTS=ON + ) + cmake-utils_src_configure +} + +pkg_postinst() { + "${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd +} diff --git a/dev-libs/intel-neo/metadata.xml b/dev-libs/intel-neo/metadata.xml new file mode 100644 index 00000000000..2c902f21332 --- /dev/null +++ b/dev-libs/intel-neo/metadata.xml @@ -0,0 +1,22 @@ + + + + + marecki@gentoo.org + Marek Szuba + + The Intel Graphics Compute Runtime for OpenCL, informally + known as NEO, is an open source project to converge Intel's development + efforts on OpenCL compute stacks supporting Gen8 graphics devices + (Broadwell architecture) and newer. + For OpenCL support on Sandy Bridge, Ivy Bridge and Haswell architectures + please have a look at dev-libs/beignet instead. + + Support the sharing of surfaces with Video Acceleration API + (OpenCL Extension #36) + + + intel/compute-runtime + + +