-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
No hardware accelection after commit 7e69a70 #7897
Comments
This is a Mesa bug. |
Steam does not start either with this commit (black splash screen after "loading user data"). Reverting the mentioned commit fixes it. Is there an open issue for this with mesa already? Was this introduced recently or did it just work until now because wlroots and sway used wl_drm instead of liunx-dmabuf? I do not really understand what the issue is and what to look for. |
Hm, actually might be an Xwayland bug. |
Just tested this on River since they too dropped wl_drm recently and have the exact same problem (intel iGPU). With mesa-amber I get softpipe renderer and with normal mesa (crocus) I get llvmpipe. (no xwayland involved). |
getting this on sway 1.9-dev-7e69a7076 as well, reverting the commit fixed it |
both vainfo and gamescope nested mode don't work so might not be the case |
As an end user without a clue about graphics stacks and wayland protocols, I just heard about linux-dmabuf superseding wl_drm for the first time. I understand that considerable work has gone into this, and clients need to catch up. If the developers of these clients didn't make them catch up yet, it's obviously their responsibility. But I'll say this: as an end user I also need a fighting chance. At the very least, that would be a transition period where a big red warning is displayed in a log when I start these clients, so I can at least poke the developers in advance. Rather than letting the clients break and leaving me puzzled for an hour. I cannot run full regression tests of everything after applying a change to my systems, sometimes I discover breakages a lot later and then it's tricky to immediately point at the software that caused it, let alone a specific commit. I think it might be too early to pull the rug. I assume that wlroots would be the place where a runtime warning has to be placed. If I can help with that with minimal C skills, I'm happy to. So unless I'm wrong about all this and missed an existing warning, my suggestion is to: |
Apparently, the logging situation is not as straight-forward as I thought. I added some error messages to wlroots (types/wlr_drm.c,
EDIT: I'll observe this for a bit and try and get a feeling for whether this could be useful as an addition to wlroots. I have no idea yet how to log a client specific identifier. If I decide to pursue this, I might try and get help via IRC in the next days. |
If you are unwilling to test or at least put up with bugs then you should not be using a unreleased master-git build. In-fact the commit is not even a bug. As the wlroots commit states this was done intentionally so they can discover what breaks and yes the warning are there. In the meantime either go to the stable 1.8 release or revert the commit on your local branch. |
Yes, it would be nice to just use stable, but then I can't report issues as they show up. That kinda requires ongoing usage as well. Of course moderate pain is expected when using bleeding edge software. I don't mind it. This is about what I think could have been avoidable pain. I understand the approach, I just think there would have been a a more gentle way. I don't think it's disrespectful to voice that opinion and I didn't mean to be disrespectful. But reading it again I can understand why it comes across that way. I should try and be less upset when writing such things. I apologise for the bad style. |
Tested with upstream sway and upsteam xwayland in nest mode. The bug seem to be fixed by applying the xserver!1236 to xwayland. |
I confirm that https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1236 fix #7899 |
The libva segfault is fixed by intel/libva#789, and the fact that libva doesn't use the GPU is fixed by intel/libva#790. |
Sorry to barge in with a short question: Are these commits in xwayland and libva already in if one installs the respective git versions? I'm not very familiar with these things and installing libva-git, xorg-xwayland-git, wlroots-git and sway-git doesn't make a difference in my case. |
None of the commits are merged yet. |
maybe worth nothing this also breaks amdvlk 2023-q3-3-1 for me warning: queue 0x74c575c7c110 destroyed while proxies still attached:
wl_registry@41 still attached
[vo/gpu-next/libplacebo] vk->GetPhysicalDeviceSurfaceCapabilitiesKHR(vk->physd, p->surf, &caps): VK_ERROR_UNKNOWN (../libplacebo/src/vulkan/swapchain.c:448)
warning: queue 0x74c575c8d0e0 destroyed while proxies still attached:
wl_registry@42 still attached
[vo/gpu-next/libplacebo] vk->GetPhysicalDeviceSurfaceCapabilitiesKHR(vk->physd, p->surf, &caps): VK_ERROR_UNKNOWN (../libplacebo/src/vulkan/swapchain.c:448) |
I agree with this argument in principle, but in this case the commit breaks functionality on an otherwise working system. The wlroots commit is just a deprecation, not a removal. I can revert the sway commit easily myself, but it seems like it's premature to drop |
Xwayland MR 1236 has been merged. May be we allow setting drop/create
|
7e69a70 ("Drop wl_drm") has dropped wl_drm, however a lot of software wasn't quite ready for this (Xwayland, libva, amdvlk). Keep wl_drm disabled by default to pressure the wl_drm phase-out, but add a -Dlegacy-wl-drm flag for users to restore the previous behavior in the meantime. References: swaywm#7897
See #7916 for an attempt at a middle ground. |
Merged it, @Billli11 i let you close the issue if everything is good on your end |
@bl4ckb0ne vaapi need more testing. Edit 1: With patched libva, everthing seem to be working fine except vlc with With stable libva version 2.20.0
With debug flag anything work. |
7e69a70 ("Drop wl_drm") has dropped wl_drm, however a lot of software wasn't quite ready for this (Xwayland, libva, amdvlk). Keep wl_drm disabled by default to pressure the wl_drm phase-out, but add a -Dlegacy-wl-drm flag for users to restore the previous behavior in the meantime. References: swaywm#7897
Please fill out the following:
Sway Version:
swaymsg -t get_version
orsway -v
sway version 1.9-dev-7e69a707 (Jan 4 2024, branch 'master')
Debug Log:
7e69a70. not working
fa294a9. working
https://gist.github.com/Billli11/04d8ccc0f9823002d4db78933613ce75
Configuration File:
Default configuration file
Stack Trace:
N/A
Description:
With commit 7e69a70. Vulkan application no longer run and opengl application run in software mode
vkcube
:glxgears -info
The text was updated successfully, but these errors were encountered: