update kernel and mesa
This commit is contained in:
@@ -5,14 +5,26 @@ in {
|
||||
enable = lib.mkEnableOption "Enables amd gpus";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config =
|
||||
let
|
||||
mesa-new = pkgs.mesa-git.mesa.overrideAttrs (oldAttrs: {
|
||||
src = pkgs.fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "hakzsam";
|
||||
repo = "mesa";
|
||||
rev = "e76537447570f64b138d6338ca59117da18c113c";
|
||||
hash = "sha256-k618hjo0H0O3FtAJp3YT8+cfFvMXI+wCmbv9lxDhrIc=";
|
||||
};
|
||||
});
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
boot.kernelParams =
|
||||
[ "amdgpu.ppfeaturemask=0xfff7ffff" "split_lock_detect=off" ];
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
package = lib.mkForce pkgs.mesa-git.mesa.drivers;
|
||||
package = lib.mkForce mesa-new.drivers;
|
||||
extraPackages = with pkgs; [ mesa-git.amdvlk ];
|
||||
};
|
||||
|
||||
|
||||
@@ -73,10 +73,8 @@ in
|
||||
|
||||
src = fetchurl {
|
||||
url =
|
||||
"https://gitlab.freedesktop.org/agd5f/linux/-/archive/amd-drm-next-6.15-2025-03-14/linux-amd-drm-next-6.15-2025-03-14.tar.gz";
|
||||
# After the first build attempt, look for "hash mismatch" and then 2 lines below at the "got:" line.
|
||||
# Use "sha256-....." value here.
|
||||
hash = "sha256-/9EvJNBSKteXljrZzmaQkbZ7o4etCe0yFM3JJg/jD7o=";
|
||||
"https://gitlab.freedesktop.org/agd5f/linux/-/archive/amd-drm-next-6.15-2025-03-21/linux-amd-drm-next-6.15-2025-03-21.tar.gz";
|
||||
hash = "sha256-sLS6uFo2KPbDdz8BhB1X10wQiiYdtT/Ny0Ii19F6feY=";
|
||||
};
|
||||
kernelPatches = [ ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user