From 3ba3a7a5f237aa58e90bb3e832b368137bb7a1e9 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 17 Aug 2025 00:57:51 +0100 Subject: [PATCH] amdvlk: disable ray tracing support for `i686-linux` --- pkgs/by-name/am/amdvlk/package.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/by-name/am/amdvlk/package.nix b/pkgs/by-name/am/amdvlk/package.nix index d743655d1eba..8b6d97d3bcae 100644 --- a/pkgs/by-name/am/amdvlk/package.nix +++ b/pkgs/by-name/am/amdvlk/package.nix @@ -85,6 +85,20 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../drivers/xgl"; + cmakeFlags = [ + # There is some incredibly cursed issue with + # `directx-shader-compiler` flagging up compiler errors only on + # `i686-linux` and only when it has been compiled with a recent + # GCC. Since few 32‐bit games are going to use ray tracing anyway, + # we just disable it for now. Arch has done this since 2022. + # + # See: + # * + # * + # * + (lib.cmakeBool "VKI_RAY_TRACING" (!(stdenv.hostPlatform.isx86 && stdenv.hostPlatform.is32bit))) + ]; + installPhase = '' runHook preInstall