-
Notifications
You must be signed in to change notification settings - Fork 48
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
Swapchain Creation fails on Wayland (mutter) when nvidia is not the primary interface #95
Comments
The only reference I can find for eglGetPlatformDisplay to return
|
Unfortunately, that doesn't tell us what's calling eglGetPlatformDisplay or what the offending attribute is... |
I can pull on that thread..
The attrib_list at the call site is
That would seem to map to:
EGL_KHR_display_references indicates
Stepping through from there, EGL_BAD_ATTRIBUTE is generated from the following frame
with the trace
|
Our Vulkan Wayland WSI has been pretty much entirely re-written for the 545 release, so it might be worth checking if updating fixes the issue. |
I'm unable to validate on my Fedora 39 setup at this time, but i've tried to repro on a freshly installed arch linux setup on the same machine using the latest 545.29.06 drivers and running into different (earlier) issues. Raised #96 I'll update here when I can confirm with newer drivers on F39 |
I'm unable to validate this further at this time, currently blocked on #96 |
In a similar vein to #94, I am also seeing
vkCreateSwapchainKHR
fail withVK_ERROR_INITIALIZATION_FAILED
I notice also that having
EGL_LOG_LEVEL=debug
will cause the following to be logged when this failure occurs, which may provide a clue.FWIW, I'm not explicitly calling eglGetPlatformDisplay or any other egl functionality in this application.
However unlike issue #94 this is not remediated by setting nvidia_drm modeset=1 (which is already enabled) per this comment
vkCreateSwapchainKHR
is being called with the following createInfo structImportantly..
I'm running a dual GPU system with nvidia + amdgpu under Gnome Wayland.
This only seems to occur when Gnome is using amdgpu as the primary interface. Swapchain creation seems fine when nvidia is the primary interface, or when it is the only interface in use.
Fedora Linux 39 (Workstation Edition)
Linux 6.5.11-300.fc39.x86_64
GNOME Version 45.1
nVidia Driver version 535.129.03
Output of eglinfo attached
eglinfo.txt
Some interesting observations.. probably unrelated
When this occurs WAYLAND_DEBUG emits the following:
In particular, that reference to
/dev/dri/renderD128
is confusing, as that is my AMD device.. despite that I am using an nVidia logical device in my Vulkan initialisation.And for the sake of experimentation..
Setting the following does allow me to proceed further..
DRI_PRIME=pci-0000_01_00_0" __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAMEnvidia
Swapchain creation succeeds, but ultimately fails on
vkQueuePresentKHR
withThe text was updated successfully, but these errors were encountered: