amdvlk: disable ray tracing support for i686-linux

This commit is contained in:
Emily
2025-08-17 01:08:24 +01:00
parent c2f81c1b2a
commit 3ba3a7a5f2
+14
View File
@@ -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 32bit games are going to use ray tracing anyway,
# we just disable it for now. Arch has done this since 2022.
#
# See:
# * <https://github.com/NixOS/nixpkgs/issues/216294>
# * <https://github.com/GPUOpen-Drivers/gpurt/issues/5>
# * <https://gitlab.archlinux.org/archlinux/packaging/packages/lib32-amdvlk/-/commit/905d9bc2cf4a003b3d367537b5e120d9771cce16>
(lib.cmakeBool "VKI_RAY_TRACING" (!(stdenv.hostPlatform.isx86 && stdenv.hostPlatform.is32bit)))
];
installPhase = ''
runHook preInstall