restructure driver selection to show conditions for which each driver is selected
This commit is contained in:
parent
a1f5702755
commit
4688f4078f
@ -29,16 +29,18 @@ else
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv) hostPlatform;
|
inherit (stdenv) hostPlatform;
|
||||||
defaultGalliumDrivers = [ "virgl" "nouveau" ]
|
# platforms that have PCIe slots and thus can use most non-integrated GPUs
|
||||||
++ (if hostPlatform.isAarch32 || hostPlatform.isAarch64 then
|
pciePlatform = !hostPlatform.isAarch32 && !hostPlatform.isAarch64;
|
||||||
[ "vc4" ]
|
defaultGalliumDrivers = [ "virgl" ]
|
||||||
++ lib.optionals hostPlatform.isAarch64 [ "freedreno" "etnaviv" "imx" ]
|
++ lib.optionals pciePlatform [ "r300" "r600" "radeonsi" ]
|
||||||
else
|
++ lib.optionals (pciePlatform || hostPlatform.isAarch32 || hostPlatform.isAarch64) [ "nouveau" ]
|
||||||
[ "r300" "r600" "radeonsi"]
|
++ lib.optionals hostPlatform.isx86 [ "i915" "svga" ]
|
||||||
++ lib.optionals hostPlatform.isx86 [ "i915" "svga" ]
|
++ lib.optionals (hostPlatform.isAarch32 || hostPlatform.isAarch64) [ "vc4" ]
|
||||||
);
|
++ lib.optionals hostPlatform.isAarch64 [ "freedreno" "etnaviv" "imx" ]
|
||||||
defaultDriDrivers = [ "nouveau" ]
|
;
|
||||||
++ lib.optionals (!hostPlatform.isAarch32 && !hostPlatform.isAarch64) [ "radeon" "r200" ]
|
defaultDriDrivers = [ ]
|
||||||
|
++ lib.optionals pciePlatform [ "radeon" "r200" ]
|
||||||
|
++ lib.optionals (pciePlatform || hostPlatform.isAarch32 || hostPlatform.isAarch64) [ "nouveau" ]
|
||||||
++ lib.optionals hostPlatform.isx86 [ "i915" "i965" ];
|
++ lib.optionals hostPlatform.isx86 [ "i915" "i965" ];
|
||||||
defaultVulkanDrivers =
|
defaultVulkanDrivers =
|
||||||
lib.optional hostPlatform.isx86 "intel"
|
lib.optional hostPlatform.isx86 "intel"
|
||||||
|
Loading…
Reference in New Issue
Block a user