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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F320158090 for ; Mon, 23 May 2022 11:57:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54522E08F3; Mon, 23 May 2022 11:57:13 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55A60E08F3 for ; Mon, 23 May 2022 11:57:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1B05B341357 for ; Mon, 23 May 2022 11:57:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6DCFE483 for ; Mon, 23 May 2022 11:57:09 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1653307009.b17d84b086f35ed0ecf9708b9f63ed99abde4e97.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libva-intel-driver/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-libs/libva-intel-driver/libva-intel-driver-2.4.1-r2.ebuild x11-libs/libva-intel-driver/metadata.xml X-VCS-Directories: x11-libs/libva-intel-driver/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: b17d84b086f35ed0ecf9708b9f63ed99abde4e97 X-VCS-Branch: master Date: Mon, 23 May 2022 11:57:09 +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: 68a81521-f33b-4ed6-8ee6-ad7406349419 X-Archives-Hash: ee60f401f64dd2b7132f8404f18e4717 commit: b17d84b086f35ed0ecf9708b9f63ed99abde4e97 Author: Kai-Chun Ning gmail com> AuthorDate: Mon May 23 08:44:10 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Mon May 23 11:56:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b17d84b0 x11-libs/libva-intel-driver: add a use flag to enable hybrid hardware acceleration This feature is supported by Intel Haswell and newer architectures. Signed-off-by: Kai-Chun Ning gmail.com> Signed-off-by: Conrad Kostecki gentoo.org> .../libva-intel-driver-2.4.1-r2.ebuild | 60 ++++++++++++++++++++++ x11-libs/libva-intel-driver/metadata.xml | 3 ++ 2 files changed, 63 insertions(+) diff --git a/x11-libs/libva-intel-driver/libva-intel-driver-2.4.1-r2.ebuild b/x11-libs/libva-intel-driver/libva-intel-driver-2.4.1-r2.ebuild new file mode 100644 index 000000000000..2adee1dcc69b --- /dev/null +++ b/x11-libs/libva-intel-driver/libva-intel-driver-2.4.1-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="intel-vaapi-driver" +if [[ ${PV} = *9999* ]] ; then # Live ebuild + inherit git-r3 + EGIT_REPO_URI="https://github.com/intel/intel-vaapi-driver" +fi + +inherit autotools multilib-minimal + +DESCRIPTION="HW video decode support for Intel integrated graphics" +HOMEPAGE="https://github.com/intel/intel-vaapi-driver" +if [[ ${PV} != *9999* ]] ; then + SRC_URI="https://github.com/intel/${MY_PN}/releases/download/${PV}/${MY_PN}-${PV}.tar.bz2" + S="${WORKDIR}/${MY_PN}-${PV}" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="hybrid wayland X" +RESTRICT="test" # No tests + +RDEPEND=" + >=x11-libs/libdrm-2.4.52[video_cards_intel,${MULTILIB_USEDEP}] + >=x11-libs/libva-2.4.0:=[X?,wayland?,drm,${MULTILIB_USEDEP}] + + hybrid? ( + >=x11-libs/intel-hybrid-codec-driver-2.0.0[X?,wayland?] + ) + + wayland? ( + >=dev-libs/wayland-1.11[${MULTILIB_USEDEP}] + >=media-libs/mesa-9.1.6[egl(+),${MULTILIB_USEDEP}] + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + eapply_user + sed -e 's/intel-gen4asm/\0diSaBlEd/g' -i configure.ac || die + eautoreconf +} + +multilib_src_configure() { + local myconf=( + $(use_enable hybrid hybrid-codec) + $(use_enable wayland) + $(use_enable X x11) + ) + ECONF_SOURCE="${S}" econf "${myconf[@]}" +} + +multilib_src_install_all() { + find "${D}" -name "*.la" -delete || die +} diff --git a/x11-libs/libva-intel-driver/metadata.xml b/x11-libs/libva-intel-driver/metadata.xml index da593f3141e2..fed131d8322d 100644 --- a/x11-libs/libva-intel-driver/metadata.xml +++ b/x11-libs/libva-intel-driver/metadata.xml @@ -5,6 +5,9 @@ aballier@gentoo.org Alexis Ballier + + Enable support for hybrid vaapi hardware acceleration on Intel Haswell and newer architectures + intel/intel-vaapi-driver