mesa: tiny cleanup
This commit is contained in:
parent
c0a4e46714
commit
3902085b3f
@ -25,20 +25,20 @@
|
|||||||
|
|
||||||
with stdenv.lib;
|
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"
|
throw "unsupported platform for Mesa"
|
||||||
else
|
else
|
||||||
|
|
||||||
let
|
let
|
||||||
defaultGalliumDrivers =
|
defaultGalliumDrivers =
|
||||||
optionals (builtins.elem "drm" eglPlatforms)
|
optionals (elem "drm" eglPlatforms)
|
||||||
(if stdenv.isAarch32
|
(if stdenv.isAarch32
|
||||||
then ["virgl" "nouveau" "freedreno" "vc4" "etnaviv" "imx"]
|
then ["virgl" "nouveau" "freedreno" "vc4" "etnaviv" "imx"]
|
||||||
else if stdenv.isAarch64
|
else if stdenv.isAarch64
|
||||||
then ["virgl" "nouveau" "vc4" ]
|
then ["virgl" "nouveau" "vc4" ]
|
||||||
else ["virgl" "svga" "i915" "r300" "r600" "radeonsi" "nouveau"]);
|
else ["virgl" "svga" "i915" "r300" "r600" "radeonsi" "nouveau"]);
|
||||||
defaultDriDrivers =
|
defaultDriDrivers =
|
||||||
optionals (builtins.elem "drm" eglPlatforms)
|
optionals (elem "drm" eglPlatforms)
|
||||||
(if (stdenv.isAarch32 || stdenv.isAarch64)
|
(if (stdenv.isAarch32 || stdenv.isAarch64)
|
||||||
then ["nouveau"]
|
then ["nouveau"]
|
||||||
else ["i915" "i965" "nouveau" "radeon" "r200"]);
|
else ["i915" "i965" "nouveau" "radeon" "r200"]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user