-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zed refuses to use GPU (Nvidia) WSL 2 #15295
Comments
I have also started having this same exact issue on my arch Linux install. Probably NVIDIA causing more issues. |
does regular zed even work in wsl 2? |
No, which is what I said in my issue as well. I tried both regular and preview and neither worked. |
In WSL, I was able to get past the error popup with |
|
I have the same problem , zed dont use nvidia gpu in wsl2 , even though I unset wayland ; |
I think I've been down the rabbit hole... TLDR; it's not a direct issue with Zed but with Blade the Vulkan library used by Zed which require a Vulkan extension called VK_EXT_inline_uniform_block like OP mentionned in the former post. Zed is not using your nvidia GPU under WSL2 because the Mesa/Dozen Vulkan implementation which is a passthrough to Direct3D12 lack of VK_EXT_inline_uniform_block extension. This command show the issue: And now it makes more sense. When looking at Blade, the Vulkan library used by Zed, it's written:
I'm now looking at Dozen which was merged two years ago in Mesa if and when the missing VK_EXT_inline_uniform_block will be implemented. I'll let you know if I find something new. 😅 |
Thank you seriously for all this. |
If it helps, I'm also getting the emulation in zed on WSL2 with a working Radeon 7900XT.
zed does work but it doesn't matter which GPU I try to select, it always uses emulation: command:
result: |
microsoft/wslg#40 sudo add-apt-repository ppa:kisak/kisak-mesa That brind d3d deveice to WSL 2 as mesa. |
Check for existing issues
Describe the bug / provide steps to reproduce it
wsl -v
Tried the regular ver. of zed as well
zed --version
Attempting to run zed results in it using the llvmpipe software renderer and not my dedicated gpu.
To attempt and resolve this I have tried the following
vkcube
This works, gpu is dedicated correctly and used in the application.
nvidia-smi
vulkaninfo (truncated)
MESA_VK_DEVICE_SELECT=list zed --foreground
Things I've tried:
Running zed with
DRI_PRIME=1
Running zed with
MESA_VK_DEVICE_SELECT=10de:1e81
(my gpu id)Running zed with
MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE=1
(Running zed with this causes the application not to display at all, the logs are similar as well)Running zed with
VK_ICD_FILENAMES=nvidia_icd.json
Running zed with
WAYLAND_DISPLAY=''
Additional steps I've tried:
Restarting computer
Restarting WSL
Reinstalling Ubuntu WSL from scratch
Installing CUDA drivers on Windows and Linux
Reinstalling mesa on Linux
Logs:
Environment
Processor Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz 3.60 GHz
Installed RAM 32.0 GB
Device ID 0F91E45C-0632-495F-9E08-DC08052333DE
Product ID 00330-80000-00000-AA933
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
GPU Settings
neofetch
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your Zed.log file to this issue.
Zed.log
Here are the logs just running with WAYLAND_DISPLAY='''
Zed.log
Zed_MESA_VK_DEVICE_SELECT&DRI_PRIME.log, Unsupported GPU, but window is displayed
There are no logs at all when MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE=1 is set. No logs are created in .local/share/zed/logs/Zed.log
Logs in console are the following:
With
VK_ICD_FILENAMES=nvidia_icd.json
as well logs return an error fromblade_graphics::hal::init
The text was updated successfully, but these errors were encountered: