From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48936) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrRxD-00063t-8E for guix-patches@gnu.org; Sat, 27 Jul 2019 15:02:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrRxC-0006Zo-2x for guix-patches@gnu.org; Sat, 27 Jul 2019 15:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrRxB-0006Zh-V1 for guix-patches@gnu.org; Sat, 27 Jul 2019 15:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrRxB-0003B8-QW for guix-patches@gnu.org; Sat, 27 Jul 2019 15:02:01 -0400 Subject: [bug#36814] [PATCH 1/2] gnu: Add intel-vaapi-driver. Resent-Message-ID: References: <871rydiifr.fsf@nckx> <20190726033037.1203-1-me@tobias.gr> <877e83496t.fsf@devup.no> In-reply-to: <877e83496t.fsf@devup.no> Date: Sat, 27 Jul 2019 21:00:56 +0200 Message-ID: <87ftmrgv4n.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tobias Geerinckx-Rice via Guix-patches Reply-To: Tobias Geerinckx-Rice Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Marius Bakke Cc: 36814@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Marius, Marius Bakke =E5=86=99=E9=81=93=EF=BC=9A > Tobias Geerinckx-Rice via Guix-patches =20 > writes: > >> * gnu/packages/video.scm (intel-vaapi-driver): New public=20 >> variable. >> --- >> gnu/packages/video.scm | 38=20 >> ++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 38 insertions(+) >> >> diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm >> index 4b9e05edfe..f068c5df65 100644 >> --- a/gnu/packages/video.scm >> +++ b/gnu/packages/video.scm >> @@ -2695,6 +2695,44 @@ of modern, widely supported codecs.") >> ;; Combination under GPLv2. See LICENSE. >> (license license:gpl2))) >>=20=20 >> +(define-public intel-vaapi-driver >> + (package >> + (name "intel-vaapi-driver") >> + (version "2.3.0") >> + (source >> + (origin >> + (method url-fetch) >> + (uri (string-append=20 >> "https://github.com/intel/intel-vaapi-driver/" >> + "releases/download/" version=20 >> "/intel-vaapi-driver-" >> + version ".tar.bz2")) >> + (sha256 >> + (base32=20 >> "1qyzxh3p8cw4fv8bz9zd4kc8hajlaps7xryzh6pad814n3m5sbjw")))) >> + (build-system gnu-build-system) >> + (native-inputs >> + `(("pkg-config" ,pkg-config))) >> + (inputs >> + `(("libdrm" ,libdrm) >> + ("libva" ,libva) >> + ("libx11" ,libx11))) >> + (arguments >> + `(#:phases >> + (modify-phases %standard-phases >> + (add-before 'configure 'set-up-directories >> + (lambda* (#:key outputs #:allow-other-keys) >> + (let ((out (assoc-ref outputs "out"))) >> + (setenv "LIBVA_DRIVERS_PATH" (string-append out=20 >> "/lib/dri")) >> + #t)))))) > > Can this be passed in #:configure-flags? What does it do,=20 > anyway? :-) > >> + (home-page "https://01.org/linuxmedia/vaapi") >> + (synopsis "VA-API video acceleration driver for Intel GEN=20 >> Graphics devices") >> + (description >> + "This is the @acronym{VA-API, Video Acceleration API}=20 >> back end required for >> +for hardware-accelerated video processing on Intel GEN=20 >> Graphics devices >> +supported by the i915 driver, such as integrated Intel HD=20 >> Graphics. It provides >> +access to both hardware and shader functionality for faster=20 >> encoding, decoding, >> +and post-processing video formats like MPEG2, H.264/AVC, and=20 >> VC-1.") > > I suppose we should limit this driver to i686-linux and=20 > x86_64-linux only. That is a very good point. > LGTM, looking forward to try it! Thanks! T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXTyfaAAKCRANsP+IT1Vt eQWQAQDrd1C306KxkinYM5BOk53cuwp7ubiO9wCb+7HJYBTyfQEAqAxHkoC9jwZ0 N8BUJiPY3wqSlUvmm/iOFb/D7CdxRQk= =a1LJ -----END PGP SIGNATURE----- --=-=-=--