Merge pull request #977 from K900/drop-amdvlk

treewide: drop hardware.amdgpu.amdvlk option
This commit is contained in:
Jörg Thalheim 2024-06-15 07:28:14 +02:00 committed by GitHub
commit 239c3864fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 41 deletions

View file

@ -6,9 +6,6 @@
) // { ) // {
default = true; default = true;
}; };
options.hardware.amdgpu.amdvlk = lib.mkEnableOption (lib.mdDoc
"use amdvlk drivers instead mesa radv drivers"
);
options.hardware.amdgpu.opencl = lib.mkEnableOption (lib.mdDoc options.hardware.amdgpu.opencl = lib.mkEnableOption (lib.mdDoc
"rocm opencl runtime (Install rocmPackages.clr and rocmPackages.clr.icd)" "rocm opencl runtime (Install rocmPackages.clr and rocmPackages.clr.icd)"
) // { ) // {
@ -27,15 +24,6 @@
(lib.mkIf config.hardware.amdgpu.loadInInitrd { (lib.mkIf config.hardware.amdgpu.loadInInitrd {
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
}) })
(lib.mkIf config.hardware.amdgpu.amdvlk {
hardware.opengl.extraPackages = with pkgs; [
amdvlk
];
hardware.opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
})
(lib.mkIf config.hardware.amdgpu.opencl { (lib.mkIf config.hardware.amdgpu.opencl {
hardware.opengl.extraPackages = hardware.opengl.extraPackages =
if pkgs ? rocmPackages.clr if pkgs ? rocmPackages.clr

View file

@ -9,18 +9,9 @@
# because when writing the specialization of Dual-Direct GFX, I did not completely # because when writing the specialization of Dual-Direct GFX, I did not completely
# remove all packages for amd igpu. I only removed amdgpu from # remove all packages for amd igpu. I only removed amdgpu from
# services.xserver.videoDrivers by overriding. This is because the specialization # services.xserver.videoDrivers by overriding. This is because the specialization
# of nix cannot implement such an operation as canceling an import. In the end, if # of nix cannot implement such an operation as canceling an import.
# it is enabled in Dual-Direct GFX In the absence of amd igpu, the amdvlk package
# caused the proton to crash. In order to solve this problem, I add the option of
# whether to enable amdvlk to the configuration file of amd gpu, and open it by
# default, and turn it off in specialization, so as to delete amdvlk package and
# other packages for amd igpu in specialization. At the same time, I also added an
# option to amdgpu's opencl runtime.
hardware = { hardware = {
nvidia.prime.offload.enable = false; nvidia.prime.offload.enable = false;
amdgpu = { amdgpu.opencl = false;
amdvlk = false;
opencl = false;
};
}; };
} }

View file

@ -9,18 +9,9 @@
# because when writing the specialization of Dual-Direct GFX, I did not completely # because when writing the specialization of Dual-Direct GFX, I did not completely
# remove all packages for amd igpu. I only removed amdgpu from # remove all packages for amd igpu. I only removed amdgpu from
# services.xserver.videoDrivers by overriding. This is because the specialization # services.xserver.videoDrivers by overriding. This is because the specialization
# of nix cannot implement such an operation as canceling an import. In the end, if # of nix cannot implement such an operation as canceling an import.
# it is enabled in Dual-Direct GFX In the absence of amd igpu, the amdvlk package
# caused the proton to crash. In order to solve this problem, I add the option of
# whether to enable amdvlk to the configuration file of amd gpu, and open it by
# default, and turn it off in specialization, so as to delete amdvlk package and
# other packages for amd igpu in specialization. At the same time, I also added an
# option to amdgpu's opencl runtime.
hardware = { hardware = {
nvidia.prime.offload.enable = false; nvidia.prime.offload.enable = false;
amdgpu = { amdgpu.opencl = false;
amdvlk = false;
opencl = false;
};
}; };
} }

View file

@ -5,9 +5,6 @@
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware = { hardware = {
nvidia.prime.offload.enable = false; nvidia.prime.offload.enable = false;
amdgpu = { amdgpu.opencl = false;
amdvlk = false;
opencl = false;
};
}; };
} }