From 66d9624e1ecf111c1cab0514130e6bf234fd6066 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Sat, 25 May 2024 13:46:12 +0200 Subject: [PATCH] [Hardware/AMD] do not set AMD_VULKAN_ICD if amdvlk is not used --- hardware/amd/amdgpu.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/amd/amdgpu.nix b/hardware/amd/amdgpu.nix index 1b57f11..2394629 100644 --- a/hardware/amd/amdgpu.nix +++ b/hardware/amd/amdgpu.nix @@ -52,7 +52,7 @@ in { ]; environment.variables = { - AMD_VULKAN_ICD = strings.toUpper cfg.defaultVulkanImplementation; + AMD_VULKAN_ICD = mkIf (cfg.defaultVulkanImplementation == "amdvlk") (strings.toUpper cfg.defaultVulkanImplementation); ROC_ENABLE_PRE_VEGA = "1"; # Enable OpenCL with Polaris GPUs };