mesa: tiny cleanup

This commit is contained in:
Jan Malakhovski 2018-11-07 09:07:48 +00:00
parent c0a4e46714
commit 3902085b3f

View File

@ -25,20 +25,20 @@
with stdenv.lib;
if ! lists.elem stdenv.hostPlatform.system platforms.mesaPlatforms then
if ! elem stdenv.hostPlatform.system platforms.mesaPlatforms then
throw "unsupported platform for Mesa"
else
let
defaultGalliumDrivers =
optionals (builtins.elem "drm" eglPlatforms)
optionals (elem "drm" eglPlatforms)
(if stdenv.isAarch32
then ["virgl" "nouveau" "freedreno" "vc4" "etnaviv" "imx"]
else if stdenv.isAarch64
then ["virgl" "nouveau" "vc4" ]
else ["virgl" "svga" "i915" "r300" "r600" "radeonsi" "nouveau"]);
defaultDriDrivers =
optionals (builtins.elem "drm" eglPlatforms)
optionals (elem "drm" eglPlatforms)
(if (stdenv.isAarch32 || stdenv.isAarch64)
then ["nouveau"]
else ["i915" "i965" "nouveau" "radeon" "r200"]);