Merge pull request #300899 from trofi/virglrenderer-enable-va-api

virglrenderer: expose and enable va-api option by default
This commit is contained in:
Mario Rodas 2024-04-10 07:25:28 -05:00 committed by GitHub
commit 4e84e7a1a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,7 @@
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, python3
, libGLU, libepoxy, libX11, libdrm, mesa, gitUpdater
, libGLU, libepoxy, libX11, libdrm, mesa
, vaapiSupport ? true, libva
, gitUpdater
}:
stdenv.mkDerivation rec {
@ -13,10 +15,15 @@ stdenv.mkDerivation rec {
separateDebugInfo = true;
buildInputs = [ libGLU libepoxy libX11 libdrm mesa ];
buildInputs = [ libGLU libepoxy libX11 libdrm mesa ]
++ lib.optionals vaapiSupport [ libva ];
nativeBuildInputs = [ meson ninja pkg-config python3 ];
mesonFlags= [
(lib.mesonBool "video" vaapiSupport)
];
passthru = {
updateScript = gitUpdater {
url = "https://gitlab.freedesktop.org/virgl/virglrenderer.git";