Building support for GLonD3D12 on Ubuntu 20.04 on WSL2 (with d3d12.so)?
just trying to build GLonD3D12 driver on new Ubuntu 20.04 on WSL2 on Insider builds with d3d12.so library..
in theory should use d3d12.so in WSL2 instead of D3D12.dll on Windows to provide OpenGL library..
it's that use case supported now?
I say because on Windows, once requirements are meet, it's very easy to build:
git clone -b msclc-d3d12 https://gitlab.freedesktop.org/kusma/mesa
and then build:
meson -Dgallium-drivers=d3d12 build cd build ninja
and I obtain the standalone opengl32.dll which works by copying in the app folder jointly with z.dll , dxil.dll , dxcompiler.dll .. trying to build under WSL2 fails with:
llvm-config found: NO need '>= 8.0.0' Run-time dependency LLVM found: NO (tried config-tool)
so I change meson:
meson -Dgallium-drivers=d3d12 -Dllvm=false build meson.build:1504:2: ERROR: Problem encountered: The following drivers require LLVM: Radv, RadeonSI, SWR. One of these is enabled, but LLVM is disabled.
finally disabling almost all:
meson -Dgallium-drivers=d3d12 -Dllvm=false -Dvulkan-drivers= -Degl=false -Dgbm=false -Dgles1=false -Dgles2=false build
meson.build:1620:2: ERROR: Dependency "wayland-scanner" not found, tried pkgconfig and cmake
typing meson configure on Windows folder seems this are almost equal configure settings except maybe Windows using platform=Windows and Linux is trying platform=wayland or something.. must install wayland on my WSL2 Unbuntu 20.04 distro and it will build?
I know right now WSL2 doesn't support accelerated graphics except for apps using no screen rendering like Tensorflow DirectML so I assume that in the future when this apps work then GLonD3D12 will build on WSL2, right? thanks..