gpu: enable hardware accelerated playback

This commit is contained in:
Leonardo Eugênio 2023-06-17 21:29:45 -03:00
parent a024dad386
commit 43a0ce5d0f
4 changed files with 21 additions and 13 deletions

View file

@ -23,6 +23,14 @@ in
# # For 32 bit applications
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages = with pkgs; [
libva
libvdpau
vaapiVdpau
rocm-opencl-icd
rocm-opencl-runtime
];
# hardware.opengl.extraPackages = with pkgs; [ amdvlk ];
# # For 32 bit applications
# # Only available on unstable

View file

@ -21,21 +21,21 @@ in {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.tabs.inTitlebar" = if desktop == "sway" then 0 else 1;
# disable media RDD because it's buggy and crashes the gpu
"media.rdd-ffmpeg.enabled" = false;
"media.rdd-ffvpx.enabled" = false;
"media.rdd-opus.enabled" = false;
"media.rdd-process.enabled" = false;
"media.rdd-retryonfailure.enabled" = false;
"media.rdd-theora.enabled" = false;
"media.rdd-vorbis.enabled" = false;
"media.rdd-vpx.enabled" = false;
"media.rdd-wav.enabled" = false;
# enable media RDD to allow gpu acceleration
"media.rdd-ffmpeg.enabled" = true;
"media.rdd-ffvpx.enabled" = true;
"media.rdd-opus.enabled" = true;
"media.rdd-process.enabled" = true;
"media.rdd-retryonfailure.enabled" = true;
"media.rdd-theora.enabled" = true;
"media.rdd-vorbis.enabled" = true;
"media.rdd-vpx.enabled" = true;
"media.rdd-wav.enabled" = true;
"media.av1.enabled" = true;
"media.ffmpeg.vaapi-drm-display.enabled" = true;
"media.ffmpeg.vaapi.enabled" = true;
"media.ffvpx.enabled" = false;
"media.ffvpx.enabled" = true;
"gfx.webrender.all" = true;

View file

@ -15,6 +15,8 @@ _: {
cache = true;
cache-pause-initial = true;
cache-pause-wait = 10;
hwdec="auto";
};
};
};

View file

@ -54,8 +54,6 @@ in
"*" = {
adaptive_sync = "on";
bg = "${theme.background} fill";
};
"DP-1" = {
mode = "1920x1080@144.000Hz";
};
};