gpu: enable hardware accelerated playback
This commit is contained in:
parent
a024dad386
commit
43a0ce5d0f
|
@ -23,6 +23,14 @@ in
|
||||||
# # For 32 bit applications
|
# # For 32 bit applications
|
||||||
hardware.opengl.driSupport32Bit = true;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
|
libva
|
||||||
|
libvdpau
|
||||||
|
vaapiVdpau
|
||||||
|
rocm-opencl-icd
|
||||||
|
rocm-opencl-runtime
|
||||||
|
];
|
||||||
|
|
||||||
# hardware.opengl.extraPackages = with pkgs; [ amdvlk ];
|
# hardware.opengl.extraPackages = with pkgs; [ amdvlk ];
|
||||||
# # For 32 bit applications
|
# # For 32 bit applications
|
||||||
# # Only available on unstable
|
# # Only available on unstable
|
||||||
|
|
|
@ -21,21 +21,21 @@ in {
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
"browser.tabs.inTitlebar" = if desktop == "sway" then 0 else 1;
|
"browser.tabs.inTitlebar" = if desktop == "sway" then 0 else 1;
|
||||||
|
|
||||||
# disable media RDD because it's buggy and crashes the gpu
|
# enable media RDD to allow gpu acceleration
|
||||||
"media.rdd-ffmpeg.enabled" = false;
|
"media.rdd-ffmpeg.enabled" = true;
|
||||||
"media.rdd-ffvpx.enabled" = false;
|
"media.rdd-ffvpx.enabled" = true;
|
||||||
"media.rdd-opus.enabled" = false;
|
"media.rdd-opus.enabled" = true;
|
||||||
"media.rdd-process.enabled" = false;
|
"media.rdd-process.enabled" = true;
|
||||||
"media.rdd-retryonfailure.enabled" = false;
|
"media.rdd-retryonfailure.enabled" = true;
|
||||||
"media.rdd-theora.enabled" = false;
|
"media.rdd-theora.enabled" = true;
|
||||||
"media.rdd-vorbis.enabled" = false;
|
"media.rdd-vorbis.enabled" = true;
|
||||||
"media.rdd-vpx.enabled" = false;
|
"media.rdd-vpx.enabled" = true;
|
||||||
"media.rdd-wav.enabled" = false;
|
"media.rdd-wav.enabled" = true;
|
||||||
|
|
||||||
"media.av1.enabled" = true;
|
"media.av1.enabled" = true;
|
||||||
"media.ffmpeg.vaapi-drm-display.enabled" = true;
|
"media.ffmpeg.vaapi-drm-display.enabled" = true;
|
||||||
"media.ffmpeg.vaapi.enabled" = true;
|
"media.ffmpeg.vaapi.enabled" = true;
|
||||||
"media.ffvpx.enabled" = false;
|
"media.ffvpx.enabled" = true;
|
||||||
|
|
||||||
"gfx.webrender.all" = true;
|
"gfx.webrender.all" = true;
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@ _: {
|
||||||
cache = true;
|
cache = true;
|
||||||
cache-pause-initial = true;
|
cache-pause-initial = true;
|
||||||
cache-pause-wait = 10;
|
cache-pause-wait = 10;
|
||||||
|
|
||||||
|
hwdec="auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -54,8 +54,6 @@ in
|
||||||
"*" = {
|
"*" = {
|
||||||
adaptive_sync = "on";
|
adaptive_sync = "on";
|
||||||
bg = "${theme.background} fill";
|
bg = "${theme.background} fill";
|
||||||
};
|
|
||||||
"DP-1" = {
|
|
||||||
mode = "1920x1080@144.000Hz";
|
mode = "1920x1080@144.000Hz";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue