mesa: re-enable video-codecs

The release disables some codecs https://gitlab.freedesktop.org/mesa/mesa/-/commit/7d969fe9e91e39e03041cdfac69bf33337bc2c96.
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
+3 -1
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