Merge pull request #145319 from colemickens/mesa-gbm-paths

mesa: /run/opengl-driver in gbm-backend-paths
This commit is contained in:
Cole Mickens 2021-11-10 14:55:03 -08:00 committed by GitHub
commit 58904ca89a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,9 @@ self = stdenv.mkDerivation {
"-Dgallium-nine=${boolToString enableGalliumNine}" # Direct3D in Wine
"-Dosmesa=${boolToString enableOSMesa}" # used by wine
"-Dmicrosoft-clc=disabled" # Only relevant on Windows (OpenCL 1.2 API on top of D3D12)
# To enable non-mesa gbm backends to be found (e.g. Nvidia)
"-Dgbm-backends-path=${libglvnd.driverLink}/lib/gbm:${placeholder "out"}/lib/gbm"
] ++ optionals stdenv.isLinux [
"-Dglvnd=true"
] ++ optionals enableOpenCL [