-
Notifications
You must be signed in to change notification settings - Fork 2.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
[Wayland] Blank window with Vulkan backend #13845
Comments
Actually turns out that you need to set |
Tested on Full output:
|
Does OpenGL work fine? Can you try the latest git build, instead of v1.10.3? -[Unknown] |
Not really, but I reckon it is because I need to install the Wayland variant of GLEW (which is
I'll give it a go, and try OpenGL with glew-wayland too. |
No luck with wayland/vulkan on the latest master (7568ba9). However OpenGL works if you install When running with
And after closing the window:
On Weston no window is created (while it is created properly with OpenGL and glew-wayland) |
I have the same issue if I try to use Vulkan + Wayland, GLES + Wayland works fine. Vulkan 1.2.201
|
some very suspicious stuff here:
Maybe we can't rely on surfCapabilities to compute the right swapchain size, and need to fall back to some other method. |
Indeed it looks like a smal colored pixel is centered in the middle of the screen, round about 1x1 could be possible. Otherwise I've tested the build (https://github.com/SupervisedThinking/LibreELEC-RR/tree/master-rr-wayland) with the usual stuff like SDL is 2.0.18 - everything else should be latest, so wayland 1.19 / protos 1.24 etc. |
I can't use wayland with |
This is still an issue in 1.14.4. ppsspp fails to initialize vulkan with error "Vulkan subsystem 6 not supported" when run under wayland. Additionally, if ppsspp is compiled with -DUSE_WAYLAND_WSI=ON it segfaults on startup if set to use vulkan. |
Well, "Vulkan subsystem 6 not supported" means it was not compiled with It'd help if you could check the backtrace, i.e. #14423 (comment). If possible, I'd recommend doing so with the latest git build, just in case a recent fix has improved things. -[Unknown] |
I tested latest git version (debug build) with -DUSE_WAYLAND_WSI=ON
This limits nvidia optimus vulkan layer to only show nvidia adapters.
Backtrace:
If run without those variables set, ppsspp still can not initialize vulkan, but does not crash, falls back to OpenGL instead:
|
Well, "[destroyed object]: error 7: importing the supplied dmabufs failed" looks a bit strange and is probably coming from the driver or SDL or something. But overall the problem is that vkCreateSwapchainKHR failed. In the one that doesn't go to GL, we are able to get far enough to create a swapchain initially, but then get a resize event for some reason (it ends up resizing to the same size, though.) Creating the resized swapchain is what fails, even though it appears to be with the same parameters as before. Maybe there's not enough VRAM available for 6x 1920x1080 buffers or something, and it has deferred actually freeing the first buffers? -[Unknown] |
I tried with both nvidia rtx 3060 laptop and intel UHD, the result is the same, so it's unlikely a driver's fault. |
I can confirm that with the issue #17410 fixed vulkan can be used natively under wayland with Indel UHD graphics. So it seems this is nvidia driver issue (native wayland apps can not use nvidia vulkan prime render offload at least). I tested with vkcube-wayland and faced the same error: "error 7: importing the supplied dmabufs failed" when trying to launch it on nvidia gpu, it runs just fine on intel one. |
I tested new nvidia driver 545.29.06 which introduces vulkan offloading for wayland apps, but it seems not everything works just yet.
|
How is this now? |
It seems to be working fine on my side. I can use Wayland SDL backend with the Vulkan renderer just fine. |
What happens?
On Arch Linux, running
PPSSPPSDL
(v1.10.3) withSLD_VIDEODRIVER=wayland
and Vulkan backend set in the config, the following message is printed and execution halts.Full output:
NOTE: the program starts fine when
SLD_VIDEODRIVER=x11
is set.What should happen?
The program should start normally.
What hardware, operating system, and PPSSPP version? On desktop, GPU matters for graphical issues.
CPU: Intel Core i7-8750H
GPU: Intel UHD Graphics 630 (Mobile)
Mesa and Vulkan Intel drivers version: 20.3.1
OS: Arch Linux, on Linux 5.9.14
WM: Sway (Wayland)
The text was updated successfully, but these errors were encountered: