-
Notifications
You must be signed in to change notification settings - Fork 361
Open
Labels
enhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
nxrighthere commentedon Apr 22, 2021
This would be an extremely useful feature, looking forward to it!
Zingam commentedon Jun 15, 2021
I hope it will be Vulkan pass-through driver which won't be obstructed by BIOS limitations or at least Molten VK but hopefully it won't be an emulation.
Vulkan, Wayland and Pipewire for a modern desktop experience!
ahupp commentedon Oct 13, 2021
I get the segfault even when (I think?) I've requested the lavapipe software renderer, so I suspect this is at least partly a regular bug rather than an unimplemented feature:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json vulkaninfo
The actual fault is in libVkLayer_MESA_device_select.so:
It looks like I can disable this with NODEVICE_SELECT=1, but that leads to a different error:
RuntimeError: vk::Instance::enumeratePhysicalDevices: ErrorInitializationFailed
when initializingsapien.VulkanRenderer()
haosulab/SAPIEN#63WSLUser commentedon Jul 7, 2022
Zink may be able to provide a partial solution as it's written to take advantage of D3D12 being available in Mesa but is applied to Vulkan. Not sure how to better explain than that. But if you look at the code you'll see it's for Vulkan but it also pulls in and uses code from the D3D12 implementation of Mesa. It also appears that MS is involved in developing that Gallium driver too so perhaps the maintainers here can speak better on it. My impression from reviewing it on Mesa's gitlab page is basically to make Vulkan available through the D3D12 driver (the kernel driver, not the mesa gallium to be clear) but I could be mistaken.
Biswa96 commentedon Jul 7, 2022
@WSLUser Maybe KhronosGroup/Vulkan-Loader@2692192
WSLUser commentedon Jul 7, 2022
Well that's a fairly new development considering Zink is over a year old now. But then it wasn't originally using any functions from D3D12 either. That is definitely a nice and necessary bit to get Vulkan working for us. But that also means we'll need to wait until the next release of Vulkan before that change and other related ones are available. What that might mean for WSLg at that point, who knows. Would be nice if the MS folks would chip in here and explain the situation. They promised us Vulkan support and we're seeing efforts that appear on surface to be doing that but no official communication confirming that.
letrhee commentedon Jul 8, 2022
See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17346
4 remaining items
Triptolemus commentedon Jan 9, 2024
Any idea if it is possible to get Vulkan working in a docker image running on WSL?
selmiskr commentedon Mar 15, 2024
See microsoft/WSL#11303
I'm not able to get Vulkan working in a docker container on WSL2. On WSL2 it recognizes my GPU (and CPU) but within the docker container it only recognizes the CPU. Anyone else stumbling upon this problem?
onomatopellan commentedon Apr 2, 2024
@selmiskr If it works in WSL2 but not in the docker container take a look at the required environment variables for "Containerized applications access to the vGPU".
GeorgeS2019 commentedon Apr 3, 2024
@daweifeng
What version WSL is needed for Vulkan to work.
Is there a latest update article on this?
selmiskr commentedon Apr 4, 2024
Why is my Vulkan Instance Version on WSL2 different than on Windows
vs
I installed the newest mesa drivers for vulkan on WSL2 and my device is recognized correctly, but it seems to use an old version of Vulkan on WSL2
This is using Ubuntu 20.04. Using Ubuntu 22.04 the version comes closer to the instance version of Windows:
GeorgeS2019 commentedon Apr 4, 2024
Ubuntu 22.04
vkcube
Godot4.3 dev5
demo Spectrum with sound working properly
apasarkar commentedon Feb 21, 2025
Like others, my goal here is to use Vulkan + NVIDIA GPU for accelerated graphics within WSL.
Even after doing what @GeorgeS2019 mentioned above, I am still finding that dzn is not a conformant implementation of Vulkan (and Microsoft 3D12 is not a Vulkan compliant adapter). This prevents me from using things like WGPU within WSL to do GPU accelerated rendering. Is there any complete Vulkan ICD I can use for this at the moment?
TheodorEmanuelsson commentedon Jul 15, 2025
Didn't work for me to run isaacsim unfortunately. Got
Skipping NVIDIA GPU due CUDA being in bad state: Microsoft Direct3D12