mesa: re-enable video-codecs

The release disables some codecs 7d969fe9e9.
Since we are not Fedora, we should probably enable them https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/M4LTGLHY5JX42IHC45WNWB5FH2JIFMAS/.
This commit is contained in:
PedroHLC ☭ 2022-10-13 15:55:51 -03:00
parent 445887f636
commit b4b99f16da
No known key found for this signature in database
GPG key ID: DF4C6898CBDC6DF5

View file

@ -14,6 +14,7 @@
, enableGalliumNine ? stdenv.isLinux
, enableOSMesa ? stdenv.isLinux
, enableOpenCL ? stdenv.isLinux && stdenv.isx86_64
, enablePatentEncumberedCodecs ? true
, libclc
, jdupes
}:
@ -117,7 +118,8 @@ self = stdenv.mkDerivation {
] ++ optionals enableOpenCL [
"-Dgallium-opencl=icd" # Enable the gallium OpenCL frontend
"-Dclang-libdir=${llvmPackages.clang-unwrapped.lib}/lib"
];
] ++ optional enablePatentEncumberedCodecs
"-Dvideo-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec";
buildInputs = with xorg; [
expat llvmPackages.libllvm libglvnd xorgproto