Merge pull request #235202 from SuperSandro2000/intel-vaapi-driver
This commit is contained in:
commit
5224f298f0
6 changed files with 17 additions and 14 deletions
|
@ -189,7 +189,7 @@ Older Intel GPUs use the i965 driver, which can be installed with:
|
|||
|
||||
```nix
|
||||
hardware.opengl.extraPackages = [
|
||||
vaapiIntel
|
||||
intel-vaapi-driver
|
||||
];
|
||||
```
|
||||
|
||||
|
|
|
@ -87,13 +87,13 @@ in
|
|||
extraPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [];
|
||||
example = literalExpression "with pkgs; [ intel-media-driver intel-ocl vaapiIntel ]";
|
||||
example = literalExpression "with pkgs; [ intel-media-driver intel-ocl intel-vaapi-driver ]";
|
||||
description = lib.mdDoc ''
|
||||
Additional packages to add to OpenGL drivers.
|
||||
This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc.
|
||||
|
||||
::: {.note}
|
||||
intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained vaapiIntel driver.
|
||||
intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained intel-vaapi-driver driver.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
@ -101,13 +101,13 @@ in
|
|||
extraPackages32 = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [];
|
||||
example = literalExpression "with pkgs.pkgsi686Linux; [ intel-media-driver vaapiIntel ]";
|
||||
example = literalExpression "with pkgs.pkgsi686Linux; [ intel-media-driver intel-vaapi-driver ]";
|
||||
description = lib.mdDoc ''
|
||||
Additional packages to add to 32-bit OpenGL drivers on 64-bit systems.
|
||||
Used when {option}`driSupport32Bit` is set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc.
|
||||
|
||||
::: {.note}
|
||||
intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained vaapiIntel driver.
|
||||
intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained intel-vaapi-driver driver.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gnum4, pkg-config, python3
|
||||
, intel-gpu-tools, libdrm, libva, libX11, libGL, wayland, libXext
|
||||
, intel-gpu-tools, libdrm, libva
|
||||
, enableHybridCodec ? false, vaapi-intel-hybrid
|
||||
, enableGui ? true, libX11, libGL, wayland, libXext
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -22,13 +23,14 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--enable-x11"
|
||||
"--enable-wayland"
|
||||
(lib.enableFeature enableGui "x11")
|
||||
(lib.enableFeature enableGui "wayland")
|
||||
] ++ lib.optional enableHybridCodec "--enable-hybrid-codec";
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook gnum4 pkg-config python3 ];
|
||||
|
||||
buildInputs = [ intel-gpu-tools libdrm libva libX11 libXext libGL wayland ]
|
||||
buildInputs = [ intel-gpu-tools libdrm libva ]
|
||||
++ lib.optionals enableGui [ libX11 libXext libGL wayland ]
|
||||
++ lib.optional enableHybridCodec vaapi-intel-hybrid;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
@ -48,6 +50,6 @@ stdenv.mkDerivation rec {
|
|||
backends for each supported hardware vendor.
|
||||
'';
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
|
@ -7,7 +7,7 @@
|
|||
, intel-compute-runtime
|
||||
, intel-media-driver
|
||||
, mpv
|
||||
, vaapiIntel
|
||||
, intel-vaapi-driver
|
||||
, vlc
|
||||
}:
|
||||
|
||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
|||
passthru.tests = {
|
||||
# other drivers depending on libva and selected application users.
|
||||
# Please get a confirmation from the maintainer before adding more applications.
|
||||
inherit intel-compute-runtime intel-media-driver vaapiIntel mpv vlc;
|
||||
inherit intel-compute-runtime intel-media-driver intel-vaapi-driver mpv vlc;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1735,6 +1735,7 @@ mapAliases ({
|
|||
|
||||
v4l_utils = v4l-utils; # Added 2019-08-07
|
||||
vamp = { vampSDK = vamp-plugin-sdk; }; # Added 2020-03-26
|
||||
vaapiIntel = intel-vaapi-driver; # Added 2023-05-31
|
||||
vapor = throw "vapor was removed because it was unmaintained and upstream service no longer exists";
|
||||
varnish62 = throw "varnish62 was removed from nixpkgs, because it is unmaintained upstream. Please switch to a different release"; # Added 2021-07-26
|
||||
varnish63 = throw "varnish63 was removed from nixpkgs, because it is unmaintained upstream. Please switch to a different release"; # Added 2021-07-26
|
||||
|
|
|
@ -20391,8 +20391,8 @@ with pkgs;
|
|||
inherit (pkgsi686Linux)
|
||||
amdvlk
|
||||
intel-media-driver
|
||||
intel-vaapi-driver
|
||||
mesa
|
||||
vaapiIntel
|
||||
libvdpau-va-gl
|
||||
vaapiVdpau
|
||||
beignet
|
||||
|
@ -24670,7 +24670,7 @@ with pkgs;
|
|||
|
||||
v8 = darwin.apple_sdk_11_0.callPackage ../development/libraries/v8 { };
|
||||
|
||||
vaapiIntel = callPackage ../development/libraries/vaapi-intel { };
|
||||
intel-vaapi-driver = callPackage ../development/libraries/intel-vaapi-driver { };
|
||||
|
||||
vaapi-intel-hybrid = callPackage ../development/libraries/vaapi-intel-hybrid { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue